Skip to content

Commit c7ac9cc

Browse files
author
Jorge Aparicio
committed
---
yaml --- r: 161601 b: refs/heads/snap-stage3 c: 0ac3b16 h: refs/heads/master i: 161599: 42f0733 v: v3
1 parent ea2fe00 commit c7ac9cc

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 4eb72d268f337a8f117c86a2ac1b98336cab9e9d
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: f2af07e6d5254ca7b2bb5791afe5314fe6947128
4+
refs/heads/snap-stage3: 0ac3b166df97f34c43214d3c64da0cff66cbac7c
55
refs/heads/try: 0f0d21c1eb5c7be04d323e0b06faf252ad790af6
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/src/liballoc/arc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ mod tests {
521521
#[test]
522522
fn show_arc() {
523523
let a = Arc::new(5u32);
524-
assert!(format!("{}", a).as_slice() == "5")
524+
assert!(format!("{}", a) == "5")
525525
}
526526

527527
// Make sure deriving works with Arc<T>

branches/snap-stage3/src/liballoc/boxed.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,14 +169,14 @@ mod test {
169169
let b = box Test as Box<Any>;
170170
let a_str = a.to_str();
171171
let b_str = b.to_str();
172-
assert_eq!(a_str.as_slice(), "Box<Any>");
173-
assert_eq!(b_str.as_slice(), "Box<Any>");
172+
assert_eq!(a_str, "Box<Any>");
173+
assert_eq!(b_str, "Box<Any>");
174174

175175
let a = &8u as &Any;
176176
let b = &Test as &Any;
177177
let s = format!("{}", a);
178-
assert_eq!(s.as_slice(), "&Any");
178+
assert_eq!(s, "&Any");
179179
let s = format!("{}", b);
180-
assert_eq!(s.as_slice(), "&Any");
180+
assert_eq!(s, "&Any");
181181
}
182182
}

0 commit comments

Comments
 (0)