diff options
| author | Christiaan Dirkx <christiaan@dirkx.email> | 2021-04-21 23:51:28 +0200 |
|---|---|---|
| committer | Christiaan Dirkx <christiaan@dirkx.email> | 2021-04-22 11:04:29 +0200 |
| commit | 1a6de8450e495f9027c174d22a041112344a9e51 (patch) | |
| tree | dfe55246caa2104aa365cdf6866d20935fe293df /library/std/src/sys/wasm | |
| parent | 62652865b6029b4776a7c03efa13a37b15c9b953 (diff) | |
Remove `sys::args::Args::inner_debug` and use `Debug` instead
Diffstat (limited to 'library/std/src/sys/wasm')
| -rw-r--r-- | library/std/src/sys/wasm/args.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/library/std/src/sys/wasm/args.rs b/library/std/src/sys/wasm/args.rs index 3b6557ae325..99d300b53b3 100644 --- a/library/std/src/sys/wasm/args.rs +++ b/library/std/src/sys/wasm/args.rs @@ -1,4 +1,5 @@ use crate::ffi::OsString; +use crate::fmt; use crate::marker::PhantomData; use crate::vec; @@ -17,9 +18,9 @@ pub struct Args { _dont_send_or_sync_me: PhantomData<*mut ()>, } -impl Args { - pub fn inner_debug(&self) -> &[OsString] { - self.iter.as_slice() +impl fmt::Debug for Args { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + self.iter.as_slice().fmt(f) } } |
