Skip to content

Commit 80c40df

Browse files
committed
Fix Clippy
1 parent 136a16b commit 80c40df

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
runs-on: ubuntu-latest
3636
steps:
3737
- uses: actions/checkout@v4
38-
- uses: dtolnay/rust-toolchain@1.73
38+
- uses: dtolnay/rust-toolchain@stable
3939
with:
4040
components: clippy
4141
- run: cargo clippy --workspace --all-features --all-targets -- -D warnings

relative-path-utils/src/root/windows.rs

-12
Original file line numberDiff line numberDiff line change
@@ -280,11 +280,6 @@ impl Iterator for ReadDir {
280280
}
281281
}
282282

283-
struct FindNextFileHandle(HANDLE);
284-
285-
unsafe impl Send for FindNextFileHandle {}
286-
unsafe impl Sync for FindNextFileHandle {}
287-
288283
pub(super) struct DirEntry {
289284
file_name: OsString,
290285
}
@@ -307,13 +302,6 @@ impl DirEntry {
307302
}
308303
}
309304

310-
impl Drop for FindNextFileHandle {
311-
fn drop(&mut self) {
312-
let r = unsafe { c::FindClose(self.0) };
313-
debug_assert!(r != 0);
314-
}
315-
}
316-
317305
fn is_current(path: &RelativePath) -> bool {
318306
path.components().all(|c| c == Component::CurDir)
319307
}

0 commit comments

Comments
 (0)