From 8a6ecddef3a2799f93d5f4666230598b16b0dc2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kat=20March=C3=A1n?= Date: Tue, 3 Dec 2024 00:50:25 -0800 Subject: [PATCH] fix(clippy): clippy --fix --- examples/insert-node.rs | 2 +- src/lib.rs | 2 +- tests/compliance.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/insert-node.rs b/examples/insert-node.rs index fe008bf..d744ce4 100644 --- a/examples/insert-node.rs +++ b/examples/insert-node.rs @@ -29,7 +29,7 @@ words { word_nodes.sort_by(sort_by_name); words_section.fmt(); - println!("{}", doc.to_string()); + println!("{}", doc); // output: // words { diff --git a/src/lib.rs b/src/lib.rs index dbcb4b0..5cdd20c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -126,7 +126,7 @@ //! License](LICENSE.md). #![deny(missing_debug_implementations, nonstandard_style)] -#![warn(missing_docs, unreachable_pub, rust_2018_idioms, unreachable_pub)] +#![warn(missing_docs, unreachable_pub, rust_2018_idioms)] #![cfg_attr(test, deny(warnings))] #![doc(html_favicon_url = "https://kdl.dev/favicon.ico")] #![doc(html_logo_url = "https://kdl.dev/logo.svg")] diff --git a/tests/compliance.rs b/tests/compliance.rs index 60eaddb..9012f22 100644 --- a/tests/compliance.rs +++ b/tests/compliance.rs @@ -36,7 +36,7 @@ fn validate_res(res: Result, path: &Path) -> miette::Resu .unwrap() .join("expected_kdl"); let expected_path = expected_dir.join(file_name); - let underscored = expected_dir.join(&format!("_{}", PathBuf::from(file_name).display())); + let underscored = expected_dir.join(format!("_{}", PathBuf::from(file_name).display())); if expected_path.exists() { let doc = res?; let expected =