Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused imports in examples/rekor #162

Merged
merged 1 commit into from
Nov 15, 2022
Merged

Conversation

danbev
Copy link
Contributor

@danbev danbev commented Nov 15, 2022

Signed-off-by: Daniel Bevenius daniel.bevenius@gmail.com

Summary

Currently, the following compiler warnings are being generated when building/running the tests:

$ cargo t --no-run
   Compiling sigstore v0.5.3 (/sigstore/sigstore-rs)
warning: unused import: `url::Url`
  --> examples/rekor/search_log_query/main.rs:23:5
   |
23 | use url::Url;
   |     ^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

warning: `sigstore` (example "search_log_query") generated 1 warning warning: unused import: `url::Url`
  --> examples/rekor/create_log_entry/main.rs:21:5
   |
21 | use url::Url;
   |     ^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

warning: `sigstore` (example "create_log_entry") generated 1 warning
    Finished test [unoptimized + debuginfo] target(s) in 28.87s
     Running unittests src/lib.rs
         (target/debug/deps/sigstore-d3c3b8a9595aed6d)

This commit removes the two imports.

Release Note

NONE

Documentation

NONE

Currently, the following compiler warnings are being generated when
building/running the tests:

$ cargo t --no-run
   Compiling sigstore v0.5.3 (/sigstore/sigstore-rs)
warning: unused import: `url::Url`
  --> examples/rekor/search_log_query/main.rs:23:5
   |
23 | use url::Url;
   |     ^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

warning: `sigstore` (example "search_log_query") generated 1 warning
warning: unused import: `url::Url`
  --> examples/rekor/create_log_entry/main.rs:21:5
   |
21 | use url::Url;
   |     ^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

warning: `sigstore` (example "create_log_entry") generated 1 warning
    Finished test [unoptimized + debuginfo] target(s) in 28.87s
     Running unittests src/lib.rs
         (target/debug/deps/sigstore-d3c3b8a9595aed6d)

This commit removes the two imports.

Signed-off-by: Daniel Bevenius <daniel.bevenius@gmail.com>
Copy link
Member

@flavio flavio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@flavio flavio merged commit 0c8d184 into sigstore:main Nov 15, 2022
flavio added a commit to flavio/sigstore-rs that referenced this pull request Nov 24, 2022
Fixes
=====

* Fix typo in cosign/mod.rs doc comment by @danbev in sigstore#148
* Fix typo in KeyPair trait doc comment by @danbev in sigstore#149
* Update cached requirement from 0.39.0 to 0.40.0 by @dependabot in sigstore#154
* Fix typos in PublicKeyVerifier doc comments by @danbev in sigstore#155
* Fix: CI error for auto deref by @Xynnn007 in sigstore#160
* Fix typo and grammar in signature_layers.rs by @danbev in sigstore#161
* Remove unused imports in examples/rekor by @danbev in sigstore#162
* Update link to verification example by @danbev in sigstore#156
* Fix typos in from_encrypted_pem doc comments by @danbev in sigstore#164
* Fix typos in doc comments by @danbev in sigstore#163
* Update path to fulcio-cert in verify example by @danbev in sigstore#168

Enhancements
============

* Add getter functions for LogEntry fields by @lkatalin in sigstore#147
* Add TreeSize alias to Rekor by @avery-blanchard in sigstore#151
* Updates for parsing hashedrekord LogEntry by @lkatalin in sigstore#152
* Add certificate based verification by @flavio in sigstore#159
* Add support for OCI Image signing (spec v1.0) by @Xynnn007 in sigstore#158
Contributors
============

* Avery Blanchard (@avery-blanchardmade)
* Daniel Bevenius (@danbev)
* Flavio Castelli (@flavio)
* Lily Sturmann (@lkatalin)
* Xynnn (@Xynnn007)

Signed-off-by: Flavio Castelli <fcastelli@suse.com>
@flavio flavio mentioned this pull request Nov 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants