chore: handle rust 1.72 clippy & fmt changes (#5399)

This commit is contained in:
David Knaack
2023-08-25 22:53:35 +02:00
committed by GitHub
parent d3ec97f86f
commit 77967148b6
7 changed files with 64 additions and 66 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ fn gen_presets_hook(mut file: &File) -> SdResult<()> {
println!("cargo:rerun-if-changed=docs/.vuepress/public/presets/toml");
let paths = fs::read_dir("docs/.vuepress/public/presets/toml")?;
let mut sortedpaths = paths.collect::<io::Result<Vec<_>>>()?;
sortedpaths.sort_by_key(|e| e.path());
sortedpaths.sort_by_key(std::fs::DirEntry::path);
let mut presets = String::new();
let mut match_arms = String::new();