cleanup: replace as[_mut]_slice()
calls with deref coercions
This commit is contained in:
parent
2c05354211
commit
17bc7d8d5b
289 changed files with 1372 additions and 1406 deletions
|
@ -24,7 +24,7 @@ impl<'a> fmt::Display for Escape<'a> {
|
|||
// Because the internet is always right, turns out there's not that many
|
||||
// characters to escape: http://stackoverflow.com/questions/7381974
|
||||
let Escape(s) = *self;
|
||||
let pile_o_bits = s.as_slice();
|
||||
let pile_o_bits = s;
|
||||
let mut last = 0;
|
||||
for (i, ch) in s.bytes().enumerate() {
|
||||
match ch as char {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue