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); word_nodes.sort_by(sort_by_name);
words_section.fmt(); words_section.fmt();
println!("{}", doc.to_string()); println!("{}", doc);
// output: // output:
// words { // words {

View File

@ -126,7 +126,7 @@
//! License](LICENSE.md). //! License](LICENSE.md).
#![deny(missing_debug_implementations, nonstandard_style)] #![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))] #![cfg_attr(test, deny(warnings))]
#![doc(html_favicon_url = "https://kdl.dev/favicon.ico")] #![doc(html_favicon_url = "https://kdl.dev/favicon.ico")]
#![doc(html_logo_url = "https://kdl.dev/logo.svg")] #![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() .unwrap()
.join("expected_kdl"); .join("expected_kdl");
let expected_path = expected_dir.join(file_name); 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() { if expected_path.exists() {
let doc = res?; let doc = res?;
let expected = let expected =