diff options
| author | joboet <jonasboettiger@icloud.com> | 2025-08-09 19:07:08 +0200 |
|---|---|---|
| committer | joboet <jonasboettiger@icloud.com> | 2025-09-10 15:26:17 +0200 |
| commit | ad08577a503dfd03e308bd272e76d95e31c6d0ef (patch) | |
| tree | 3af8f20d10bdc66b12b45c66c049954f3a4c934f /library/std/src/sys/pal/wasip2 | |
| parent | 4b15dd5a84742f9e7641b62e490765e0c1cb415c (diff) | |
| download | rust-ad08577a503dfd03e308bd272e76d95e31c6d0ef.tar.gz rust-ad08577a503dfd03e308bd272e76d95e31c6d0ef.zip | |
std: move `thread` into `sys`
Diffstat (limited to 'library/std/src/sys/pal/wasip2')
| -rw-r--r-- | library/std/src/sys/pal/wasip2/mod.rs | 1 | ||||
| -rw-r--r-- | library/std/src/sys/pal/wasip2/time.rs | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/library/std/src/sys/pal/wasip2/mod.rs b/library/std/src/sys/pal/wasip2/mod.rs index 5f3fb6d6ddf..c1d89da2677 100644 --- a/library/std/src/sys/pal/wasip2/mod.rs +++ b/library/std/src/sys/pal/wasip2/mod.rs @@ -14,7 +14,6 @@ pub mod futex; pub mod os; #[path = "../unsupported/pipe.rs"] pub mod pipe; -pub mod thread; pub mod time; #[path = "../unsupported/common.rs"] diff --git a/library/std/src/sys/pal/wasip2/time.rs b/library/std/src/sys/pal/wasip2/time.rs index f1f6839774b..980070e7b85 100644 --- a/library/std/src/sys/pal/wasip2/time.rs +++ b/library/std/src/sys/pal/wasip2/time.rs @@ -25,7 +25,7 @@ impl Instant { Some(Instant(self.0.checked_sub(*other)?)) } - pub(super) fn as_duration(&self) -> &Duration { + pub(crate) fn as_duration(&self) -> &Duration { &self.0 } } |
