Strip new lines in validator create (#1214)

This commit is contained in:
Michael Sproul
2020-05-28 11:26:24 +10:00
committed by GitHub
parent 6383c95f8b
commit 7d897a0519
3 changed files with 4 additions and 8 deletions

View File

@@ -49,8 +49,7 @@ pub fn strip_off_newlines(mut bytes: Vec<u8>) -> Vec<u8> {
}
}
bytes.truncate(bytes.len() - strip_off);
bytes.to_vec()
bytes
}
#[cfg(test)]