diff --git a/Cargo.lock b/Cargo.lock index a83a9cf..8c700c5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -284,12 +284,6 @@ dependencies = [ "memchr", ] -[[package]] -name = "convert_case" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6245d59a3e82a7fc217c5828a6692dbc6dfb63a0c8c90495621f7b9d79704a0e" - [[package]] name = "crossbeam-deque" version = "0.8.3" @@ -381,15 +375,23 @@ dependencies = [ [[package]] name = "derive_more" -version = "0.99.18" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f33878137e4dafd7fa914ad4e259e18a4e8e532b9617a2d0150262bf53abfce" +checksum = "4a9b99b9cbbe49445b21764dc0625032a89b145a2642e67603e1c936f5458d05" +dependencies = [ + "derive_more-impl", +] + +[[package]] +name = "derive_more-impl" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb7330aeadfbe296029522e6c40f315320aba36fc43a5b3632f3795348f3bd22" dependencies = [ - "convert_case", "proc-macro2", "quote", - "rustc_version", "syn", + "unicode-xid", ] [[package]] @@ -1021,15 +1023,6 @@ version = "0.1.23" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d626bb9dae77e28219937af045c257c28bfd3f69333c512553507f5f9798cb76" -[[package]] -name = "rustc_version" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" -dependencies = [ - "semver", -] - [[package]] name = "rustix" version = "0.38.19" @@ -1064,12 +1057,6 @@ version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" -[[package]] -name = "semver" -version = "1.0.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "836fa6a3e1e547f9a2c4040802ec865b5d85f4014efe00555d7090a3dcaa1090" - [[package]] name = "serde" version = "1.0.204" diff --git a/crates/typos-cli/Cargo.toml b/crates/typos-cli/Cargo.toml index 666dc44..b73c822 100644 --- a/crates/typos-cli/Cargo.toml +++ b/crates/typos-cli/Cargo.toml @@ -60,7 +60,7 @@ proc-exit = "2.0" human-panic = "2.0.0" content_inspector = "0.2.4" unicode-segmentation = "1.11.0" -derive_more = "0.99.17" +derive_more = { version = "1.0", features = ["from", "display"] } derive_setters = "0.1" itertools = "0.13" serde_json = "1.0" diff --git a/crates/typos-cli/src/report.rs b/crates/typos-cli/src/report.rs index c6f50fa..8ebf12e 100644 --- a/crates/typos-cli/src/report.rs +++ b/crates/typos-cli/src/report.rs @@ -62,7 +62,7 @@ impl<'m> Message<'m> { } #[derive(Clone, Debug, serde::Serialize, derive_more::Display, derive_setters::Setters)] -#[display(fmt = "Skipping binary file {}", "path.display()")] +#[display("Skipping binary file {}", "path.display()")] #[non_exhaustive] pub struct BinaryFile<'m> { pub path: &'m std::path::Path,