Skip to content

Commit 6e06da8

Browse files
committed
Fix up
1 parent 23343f1 commit 6e06da8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libgreen/macros.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ macro_rules! rtassert (
4747

4848
macro_rules! rtabort (
4949
($($arg:tt)*) => ( {
50-
::macros::abort(format!($($arg)*).as_slice());
50+
::macros::abort(format!($($arg)*).as_str());
5151
} )
5252
)
5353

src/libgreen/stack.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ fn max_cached_stacks() -> uint {
164164
0 => {}
165165
n => return n - 1,
166166
}
167-
let amt = getenv("RUST_MAX_CACHED_STACKS").and_then(|s| from_str(s.as_slice()));
167+
let amt = getenv("RUST_MAX_CACHED_STACKS").and_then(|s| from_str(s.as_str()));
168168
// This default corresponds to 20M of cache per scheduler (at the
169169
// default size).
170170
let amt = amt.unwrap_or(10);

0 commit comments

Comments
 (0)