Update Rust crate zip to v1 - autoclosed #783
GitHub Actions / clippy
failed
Apr 20, 2024 in 0s
clippy
1 error
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 1 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.77.2 (25ef9e3d8 2024-04-09)
- cargo 1.77.2 (e52e36006 2024-03-26)
- clippy 0.1.77 (25ef9e3 2024-04-09)
Annotations
Check failure on line 246 in src/cli/cmd/download.rs
github-actions / clippy
the trait bound `std::boxed::Box<str>: std::convert::From<&std::string::String>` is not satisfied
error[E0277]: the trait bound `std::boxed::Box<str>: std::convert::From<&std::string::String>` is not satisfied
--> src/cli/cmd/download.rs:246:35
|
246 | zw.start_file(&fname, zip::write::FileOptions::default())
| ---------- ^^^^^^ the trait `std::convert::From<&std::string::String>` is not implemented for `std::boxed::Box<str>`, which is required by `&std::string::String: std::convert::Into<std::boxed::Box<str>>`
| |
| required by a bound introduced by this call
|
= note: required for `&std::string::String` to implement `std::convert::Into<std::boxed::Box<str>>`
note: required by a bound in `zip::write::<impl zip::ZipWriter<W>>::start_file`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/zip-1.1.0/src/write.rs:903:12
|
897 | pub fn start_file<S, T: FileOptionExtension>(
| ---------- required by a bound in this associated function
...
903 | S: Into<Box<str>>,
| ^^^^^^^^^^^^^^ required by this bound in `zip::write::<impl ZipWriter<W>>::start_file`
help: consider dereferencing here
|
246 | zw.start_file(&*fname, zip::write::FileOptions::default())
| +
Loading