]> git.lizzy.rs Git - rust.git/commitdiff
Fix double import in wasm thread
authorThomas Versteeg <thomas@versteeg.email>
Fri, 2 Jul 2021 09:37:00 +0000 (09:37 +0000)
committerGitHub <noreply@github.com>
Fri, 2 Jul 2021 09:37:00 +0000 (09:37 +0000)
The `unsupported` type is imported two times, as `super::unsupported` and as `crate::sys::unsupported`, throwing an error. Remove `super::unsupported` in favor of the other.

library/std/src/sys/wasm/atomics/thread.rs

index 0971483510495bb33f586467689164dc331aec90..a66ab0837570d59db4b152288d0d195349efac16 100644 (file)
@@ -1,4 +1,3 @@
-use super::unsupported;
 use crate::ffi::CStr;
 use crate::io;
 use crate::num::NonZeroUsize;