Skip to content

Commit 8552cb5

Browse files
committed
---
yaml --- r: 82394 b: refs/heads/master c: 256913e h: refs/heads/master v: v3
1 parent 996e0bb commit 8552cb5

File tree

3 files changed

+2
-33
lines changed

3 files changed

+2
-33
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 6c08cc2db4f98e9f07ae7d50338396c4123c2f0a
2+
refs/heads/master: 256913eb328027cb098aea0f231cc0e245f56714
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 6c08cc2db4f98e9f07ae7d50338396c4123c2f0a
55
refs/heads/try: 70152ff55722878cde684ee6462c14c65f2c4729

trunk/src/libextra/uuid.rs

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ use std::rand::Rng;
6666
use std::cmp::Eq;
6767
use std::cast::{transmute,transmute_copy};
6868

69-
use serialize::{Encoder, Encodable, Decoder, Decodable};
70-
7169
/// A 128-bit (16 byte) buffer containing the ID
7270
pub type UuidBytes = [u8, ..16];
7371

@@ -488,21 +486,6 @@ impl TotalEq for Uuid {
488486
}
489487
}
490488

491-
// FIXME #9845: Test these more thoroughly
492-
impl<T: Encoder> Encodable<T> for Uuid {
493-
/// Encode a UUID as a hypenated string
494-
fn encode(&self, e: &mut T) {
495-
e.emit_str(self.to_hyphenated_str());
496-
}
497-
}
498-
499-
impl<T: Decoder> Decodable<T> for Uuid {
500-
/// Decode a UUID from a string
501-
fn decode(d: &mut T) -> Uuid {
502-
from_str(d.read_str()).unwrap()
503-
}
504-
}
505-
506489
/// Generates a random instance of UUID (V4 conformant)
507490
impl rand::Rand for Uuid {
508491
#[inline]
@@ -787,20 +770,6 @@ mod test {
787770
assert!(ub.len() == 16);
788771
assert!(! ub.iter().all(|&b| b == 0));
789772
}
790-
791-
#[test]
792-
fn test_serialize_round_trip() {
793-
use std;
794-
use ebml;
795-
use serialize::{Encodable, Decodable};
796-
797-
let u = Uuid::new_v4();
798-
let bytes = do std::io::with_bytes_writer |wr| {
799-
u.encode(&mut ebml::writer::Encoder(wr));
800-
};
801-
let u2 = Decodable::decode(&mut ebml::reader::Decoder(ebml::reader::Doc(@bytes)));
802-
assert_eq!(u, u2);
803-
}
804773
}
805774

806775
#[cfg(test)]

trunk/src/libstd/num/num.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@ impl_from_primitive!(f64, n.to_f64())
861861
/// # Example
862862
///
863863
/// ```
864-
/// let twenty: f32 = num::cast(0x14);
864+
/// let twenty: f32 = num::cast(0x14).unwrap();
865865
/// assert_eq!(twenty, 20f32);
866866
/// ```
867867
///

0 commit comments

Comments
 (0)