]> git.proxmox.com Git - rustc.git/blobdiff - src/libstd/thread/mod.rs
New upstream version 1.44.1+dfsg1
[rustc.git] / src / libstd / thread / mod.rs
index 0dc43c7e6510ab6abac48de6ff4ef722b0f6514a..282e268efd20686f35fba68a792d3f4f96ce432e 100644 (file)
@@ -1082,8 +1082,8 @@ impl ThreadId {
     /// it is not guaranteed which values new threads will return, and this may
     /// change across Rust versions.
     #[unstable(feature = "thread_id_value", issue = "67939")]
-    pub fn as_u64(&self) -> u64 {
-        self.0.get()
+    pub fn as_u64(&self) -> NonZeroU64 {
+        self.0
     }
 }