From 2aa7bda3cb21ce6c052b82e08bcab79a625d04f2 Mon Sep 17 00:00:00 2001 From: Weicao-CatilGrass <1992414357@qq.com> Date: Sun, 31 May 2026 02:42:52 +0800 Subject: Enhance code quality across the entire codebase --- dev_tools/src/bin/refresh-docs.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'dev_tools/src/bin/refresh-docs.rs') diff --git a/dev_tools/src/bin/refresh-docs.rs b/dev_tools/src/bin/refresh-docs.rs index ffa80a2..71143d1 100644 --- a/dev_tools/src/bin/refresh-docs.rs +++ b/dev_tools/src/bin/refresh-docs.rs @@ -49,7 +49,7 @@ fn gen_example_doc_module() { let template_str = template.to_string(); let template_str = template_str .lines() - .map(|line| line.trim_end()) + .map(str::trim_end) .collect::>() .join("\n") + "\n"; @@ -91,19 +91,19 @@ impl ExampleContent { let cargo_toml = cargo_toml .lines() - .map(|line| format!("/// {}", line)) + .map(|line| format!("/// {line}")) .collect::>() .join("\n"); let header = header .lines() - .map(|line| format!("/// {}", line)) + .map(|line| format!("/// {line}")) .collect::>() .join("\n"); let code = code .lines() - .map(|line| format!("/// {}", line)) + .map(|line| format!("/// {line}")) .collect::>() .join("\n"); -- cgit