Simplify default Result generics.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
8244d78cb2
commit
ae707ab465
42 changed files with 95 additions and 115 deletions
|
|
@ -54,7 +54,7 @@ impl<'de> Deserializer<'de> {
|
|||
|
||||
/// Determine if the input was fully consumed and error if bytes remaining.
|
||||
/// This is intended for debug assertions; not optimized for parsing logic.
|
||||
fn finished(&self) -> Result<()> {
|
||||
fn finished(&self) -> Result {
|
||||
let pos = self.pos;
|
||||
let len = self.buf.len();
|
||||
let parsed = &self.buf[0..pos];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue