diff options
| author | Edward Wang <edward.yu.wang@gmail.com> | 2014-02-01 04:35:36 +0800 |
|---|---|---|
| committer | Edward Wang <edward.yu.wang@gmail.com> | 2014-02-11 05:21:35 +0800 |
| commit | e9ff91e9beb6c92d9662242c1090c507b1611c59 (patch) | |
| tree | cb5bfa3501d0613b0375d6a3f7cb299ac2c22d95 /src/libstd/fmt/mod.rs | |
| parent | 4f16e519f13cbfd78cd6c06fc0639df401bc0077 (diff) | |
Move replace and swap to std::mem. Get rid of std::util
Also move Void to std::any, move drop to std::mem and reexport in prelude.
Diffstat (limited to 'src/libstd/fmt/mod.rs')
| -rw-r--r-- | src/libstd/fmt/mod.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libstd/fmt/mod.rs b/src/libstd/fmt/mod.rs index d2e9fe040f7..c8b5d3b2d5a 100644 --- a/src/libstd/fmt/mod.rs +++ b/src/libstd/fmt/mod.rs @@ -477,6 +477,7 @@ will look like `"\\{"`. */ +use any; use cast; use char::Char; use container::Container; @@ -489,7 +490,6 @@ use repr; use result::{Ok, Err}; use str::StrSlice; use str; -use util; use vec::ImmutableVector; use vec; @@ -524,8 +524,8 @@ pub struct Formatter<'a> { /// compile time it is ensured that the function and the value have the correct /// types, and then this struct is used to canonicalize arguments to one type. pub struct Argument<'a> { - priv formatter: extern "Rust" fn(&util::Void, &mut Formatter) -> Result, - priv value: &'a util::Void, + priv formatter: extern "Rust" fn(&any::Void, &mut Formatter) -> Result, + priv value: &'a any::Void, } impl<'a> Arguments<'a> { @@ -794,11 +794,11 @@ impl<'a> Formatter<'a> { rt::CountImplied => { None } rt::CountIsParam(i) => { let v = self.args[i].value; - unsafe { Some(*(v as *util::Void as *uint)) } + unsafe { Some(*(v as *any::Void as *uint)) } } rt::CountIsNextParam => { let v = self.curarg.next().unwrap().value; - unsafe { Some(*(v as *util::Void as *uint)) } + unsafe { Some(*(v as *any::Void as *uint)) } } } } |
