about summary refs log tree commit diff
path: root/src/libdebug/repr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libdebug/repr.rs')
-rw-r--r--src/libdebug/repr.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libdebug/repr.rs b/src/libdebug/repr.rs
index 133353ec3d7..3e541929dbf 100644
--- a/src/libdebug/repr.rs
+++ b/src/libdebug/repr.rs
@@ -73,7 +73,7 @@ int_repr!(u64, "u64")
 
 macro_rules! num_repr(($ty:ident, $suffix:expr) => (impl Repr for $ty {
     fn write_repr(&self, writer: &mut io::Writer) -> io::IoResult<()> {
-        let s = self.to_str();
+        let s = self.to_string();
         writer.write(s.as_bytes()).and_then(|()| {
             writer.write($suffix)
         })
@@ -564,7 +564,7 @@ pub fn write_repr<T>(writer: &mut io::Writer, object: &T) -> io::IoResult<()> {
     }
 }
 
-pub fn repr_to_str<T>(t: &T) -> String {
+pub fn repr_to_string<T>(t: &T) -> String {
     let mut result = io::MemWriter::new();
     write_repr(&mut result as &mut io::Writer, t).unwrap();
     String::from_utf8(result.unwrap()).unwrap()