New clippy comments?

This commit is contained in:
Nicolas Patry
2020-09-02 09:54:17 +02:00
parent 418473577d
commit 52082b5476
7 changed files with 19 additions and 26 deletions

View File

@ -181,10 +181,9 @@ impl PyEncoding {
}
}
}
Ok(self
.encoding
.pad(length, pad_id, pad_type_id, pad_token, direction))
self.encoding
.pad(length, pad_id, pad_type_id, pad_token, direction);
Ok(())
}
#[args(kwargs = "**")]
@ -200,7 +199,7 @@ impl PyEncoding {
}
}
}
Ok(self.encoding.truncate(max_length, stride))
self.encoding.truncate(max_length, stride);
Ok(())
}
}