Follow rust std: Use full range for slicing
This commit is contained in:
parent
0388c69228
commit
399231ad5e
@ -238,7 +238,7 @@ impl Serialize for String {
|
|||||||
fn visit<
|
fn visit<
|
||||||
V: Visitor,
|
V: Visitor,
|
||||||
>(&self, visitor: &mut V) -> Result<V::Value, V::Error> {
|
>(&self, visitor: &mut V) -> Result<V::Value, V::Error> {
|
||||||
(&self[]).visit(visitor)
|
(&self[..]).visit(visitor)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -320,7 +320,7 @@ impl<
|
|||||||
fn visit<
|
fn visit<
|
||||||
V: Visitor,
|
V: Visitor,
|
||||||
>(&self, visitor: &mut V) -> Result<V::Value, V::Error> {
|
>(&self, visitor: &mut V) -> Result<V::Value, V::Error> {
|
||||||
(&self[]).visit(visitor)
|
(&self[..]).visit(visitor)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user