Skip to content

Commit 33b1cc2

Browse files
committed
1 parent 6b918f1 commit 33b1cc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/sys/windows/thread_local.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ unsafe fn run_dtors() {
244244
let ret = if DTORS.is_null() {
245245
Vec::new()
246246
} else {
247-
(*DTORS).iter().cloned().collect()
247+
(*DTORS).iter().map(|s| *s).collect()
248248
};
249249
DTOR_LOCK.unlock();
250250
ret

0 commit comments

Comments
 (0)