fix(clippy): clippy --fix

This commit is contained in:
Kat Marchán 2024-12-03 00:50:25 -08:00
parent da8335fcb7
commit 8a6ecddef3
No known key found for this signature in database
GPG Key ID: AEB529C08A3C7E9E
3 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ words {
word_nodes.sort_by(sort_by_name);
words_section.fmt();
println!("{}", doc.to_string());
println!("{}", doc);
// output:
// words {

View File

@ -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")]

View File

@ -36,7 +36,7 @@ fn validate_res(res: Result<KdlDocument, KdlError>, 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 =