diff options
| author | Corey Richardson <corey@octayn.net> | 2013-05-16 21:53:54 -0400 |
|---|---|---|
| committer | Corey Richardson <corey@octayn.net> | 2013-05-16 21:53:54 -0400 |
| commit | c2baaa8d8432c8d7320e928e7ad706f225430bb3 (patch) | |
| tree | f3a398ecd581bde5f7352b2e5336461a79cbe496 /src/libcore/rt | |
| parent | 00eef96a007a817533e78860e97b251258177d5f (diff) | |
| download | rust-c2baaa8d8432c8d7320e928e7ad706f225430bb3.tar.gz rust-c2baaa8d8432c8d7320e928e7ad706f225430bb3.zip | |
fix warnings
Diffstat (limited to 'src/libcore/rt')
| -rw-r--r-- | src/libcore/rt/stack.rs | 4 | ||||
| -rw-r--r-- | src/libcore/rt/uv/mod.rs | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/libcore/rt/stack.rs b/src/libcore/rt/stack.rs index 3a4e9307d3b..061d7dab9a1 100644 --- a/src/libcore/rt/stack.rs +++ b/src/libcore/rt/stack.rs @@ -31,9 +31,7 @@ pub impl StackSegment { /// Point one word beyond the high end of the allocated stack fn end(&self) -> *uint { - unsafe { - vec::raw::to_ptr(self.buf).offset(self.buf.len()) as *uint - } + vec::raw::to_ptr(self.buf).offset(self.buf.len()) as *uint } } diff --git a/src/libcore/rt/uv/mod.rs b/src/libcore/rt/uv/mod.rs index 6499f0a3efd..1d93b327395 100644 --- a/src/libcore/rt/uv/mod.rs +++ b/src/libcore/rt/uv/mod.rs @@ -362,7 +362,7 @@ pub type Buf = uvll::uv_buf_t; /// Borrow a slice to a Buf pub fn slice_to_uv_buf(v: &[u8]) -> Buf { - let data = unsafe { vec::raw::to_ptr(v) }; + let data = vec::raw::to_ptr(v); unsafe { uvll::buf_init(data, v.len()) } } |
