fix:Apply suggestions from clippy 1.88 (#20)

This commit is contained in:
houseme
2025-07-02 12:14:22 +08:00
committed by GitHub
parent 291de5bb96
commit cb19bbef22
7 changed files with 26 additions and 31 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ pub async fn read_dir(path: impl AsRef<Path>, count: i32) -> std::io::Result<Vec
if file_type.is_file() {
volumes.push(name);
} else if file_type.is_dir() {
volumes.push(format!("{}{}", name, SLASH_SEPARATOR));
volumes.push(format!("{name}{SLASH_SEPARATOR}"));
}
count -= 1;
if count == 0 {