Skip to content

Commit f9e0baa

Browse files
emberianalexcrichton
authored andcommitted
remove duplicate methods in impls
1 parent 1607871 commit f9e0baa

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/libserialize/json.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1312,7 +1312,7 @@ impl ::Decoder for Decoder {
13121312
value => self.expected("number", &value)
13131313
}
13141314
}
1315-
fn read_f32(&mut self) -> f32 { self.read_f64() as f32 }
1315+
13161316
fn read_f32(&mut self) -> f32 { self.read_f64() as f32 }
13171317

13181318
fn read_char(&mut self) -> char {

src/libstd/str.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2664,9 +2664,6 @@ impl<'a> StrSlice<'a> for &'a str {
26642664
return multibyte_char_range_at(*self, i);
26652665
}
26662666

2667-
#[inline]
2668-
fn char_at(&self, i: uint) -> char { self.char_range_at(i).ch }
2669-
26702667
#[inline]
26712668
fn char_range_at_reverse(&self, start: uint) -> CharRange {
26722669
let mut prev = start;

0 commit comments

Comments
 (0)