tlsnotary / tlsn

Rust implementation of the TLSNotary protocol
https://tlsnotary.org
219 stars 55 forks source link

fix: adjust code to unused_qualifications errors #494

Closed mwarzynski closed 3 weeks ago

mwarzynski commented 3 weeks ago

Hey!

I tried to build the tlsn/examples, but cargo build failed with a bunch of 'unnecessary qualification' errors.

examples [main] cargo build --release --example simple_prover
   Compiling tlsn-tls-client v0.1.0-alpha.5 (/Users/mwarzynski/Work/tlsnotary/tlsn/components/tls/tls-client)
error: unnecessary qualification
   --> /Users/mwarzynski/Work/tlsnotary/tlsn/components/tls/tls-client/src/cipher.rs:45:38
    |
45  | pub(crate) struct Iv(pub(crate) [u8; ring::aead::NONCE_LEN]);
    |                                      ^^^^^^^^^^^^^^^^^^^^^
    |

This PR fixes this issue.

examples [mw-unused_qualifications] cargo version
cargo 1.78.0 (54d8815d0 2024-03-26)
examples [mw-unused_qualifications] cargo build --release --example simple_prover
    Finished `release` profile [optimized] target(s) in 0.21s
mwarzynski commented 3 weeks ago

Ahh, okay, nevermind. Based on this issue (https://github.com/tlsnotary/tlsn/issues/484), I believe this is already fixed on the dev branch.