Follow rust std: Use full range for slicing

This commit is contained in:
Thomas Bahn 2015-02-24 10:53:42 +01:00
parent 0388c69228
commit 399231ad5e

View File

@ -238,7 +238,7 @@ impl Serialize for String {
fn visit<
V: Visitor,
>(&self, visitor: &mut V) -> Result<V::Value, V::Error> {
(&self[]).visit(visitor)
(&self[..]).visit(visitor)
}
}
@ -320,7 +320,7 @@ impl<
fn visit<
V: Visitor,
>(&self, visitor: &mut V) -> Result<V::Value, V::Error> {
(&self[]).visit(visitor)
(&self[..]).visit(visitor)
}
}