Fixing clippy issues (#139)

This commit is contained in:
Kevin Lewi
2021-02-11 03:41:01 -08:00
committed by GitHub
parent 1dbfed8763
commit f596e4bf0e
4 changed files with 212 additions and 241 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ pub(crate) fn os2ip(input: &[u8]) -> Result<usize, PakeError> {
// Computes I2OSP(len(input), max_bytes) || input
pub(crate) fn serialize(input: &[u8], max_bytes: usize) -> Vec<u8> {
[&i2osp(input.len(), max_bytes), &input[..]].concat()
[&i2osp(input.len(), max_bytes), input].concat()
}
// Tokenizes an input of the format I2OSP(len(input), max_bytes) || input, outputting