From 5fb254695b4db9af3d8e33577fae28ae9f7006c5 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Fri, 31 May 2013 15:17:22 -0700 Subject: Remove all uses of `pub impl`. rs=style --- src/libstd/rt/stack.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/libstd/rt/stack.rs') diff --git a/src/libstd/rt/stack.rs b/src/libstd/rt/stack.rs index ec56e65931c..fa4b8f30f4e 100644 --- a/src/libstd/rt/stack.rs +++ b/src/libstd/rt/stack.rs @@ -19,8 +19,8 @@ pub struct StackSegment { valgrind_id: c_uint } -pub impl StackSegment { - fn new(size: uint) -> StackSegment { +impl StackSegment { + pub fn new(size: uint) -> StackSegment { unsafe { // Crate a block of uninitialized values let mut stack = vec::with_capacity(size); @@ -38,12 +38,12 @@ pub impl StackSegment { } /// Point to the low end of the allocated stack - fn start(&self) -> *uint { - vec::raw::to_ptr(self.buf) as *uint + pub fn start(&self) -> *uint { + vec::raw::to_ptr(self.buf) as *uint } /// Point one word beyond the high end of the allocated stack - fn end(&self) -> *uint { + pub fn end(&self) -> *uint { vec::raw::to_ptr(self.buf).offset(self.buf.len()) as *uint } } -- cgit 1.4.1-3-g733a5