mirror of
https://github.com/starship/starship.git
synced 2026-06-23 02:05:51 +07:00
chore: handle rust 1.72 clippy & fmt changes (#5399)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user