diff options
| author | Brian Anderson <banderson@mozilla.com> | 2014-02-09 00:17:37 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2014-02-09 00:17:41 -0800 |
| commit | 073b655187916e9155d285efc496cfd89104796c (patch) | |
| tree | 72ab55665fbbf93ec91a4869e7952deb256817eb /src/libuuid/lib.rs | |
| parent | c7710cdf4563533b211a16cb02a9b4cb70ed3ca9 (diff) | |
| download | rust-073b655187916e9155d285efc496cfd89104796c.tar.gz rust-073b655187916e9155d285efc496cfd89104796c.zip | |
std: Move byteswap functions to mem
Diffstat (limited to 'src/libuuid/lib.rs')
| -rw-r--r-- | src/libuuid/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libuuid/lib.rs b/src/libuuid/lib.rs index 1951c52237f..36b267c7eb7 100644 --- a/src/libuuid/lib.rs +++ b/src/libuuid/lib.rs @@ -203,7 +203,7 @@ impl Uuid { /// * `d3` A 16-bit word /// * `d4` Array of 8 octets pub fn from_fields(d1: u32, d2: u16, d3: u16, d4: &[u8]) -> Uuid { - use std::unstable::intrinsics::{to_be16, to_be32}; + use std::mem::{to_be16, to_be32}; // First construct a temporary field-based struct let mut fields = UuidFields { @@ -329,7 +329,7 @@ impl Uuid { /// /// Example: `550e8400-e29b-41d4-a716-446655440000` pub fn to_hyphenated_str(&self) -> ~str { - use std::unstable::intrinsics::{to_be16, to_be32}; + use std::mem::{to_be16, to_be32}; // Convert to field-based struct as it matches groups in output. // Ensure fields are in network byte order, as per RFC. let mut uf: UuidFields; |
