mirror of https://github.com/kdl-org/kdl-rs.git
fix(clippy): clippy --fix
This commit is contained in:
parent
da8335fcb7
commit
8a6ecddef3
|
|
@ -29,7 +29,7 @@ words {
|
|||
word_nodes.sort_by(sort_by_name);
|
||||
words_section.fmt();
|
||||
|
||||
println!("{}", doc.to_string());
|
||||
println!("{}", doc);
|
||||
|
||||
// output:
|
||||
// words {
|
||||
|
|
|
|||
|
|
@ -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")]
|
||||
|
|
|
|||
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Reference in New Issue