refactor to pass slices around and not &Vec<> (#498)

cleaned up a couple of unwrap() calls
This commit is contained in:
Antioch Peverell
2020-08-03 10:29:54 +01:00
committed by GitHub
parent 7a003374ac
commit e00c61fd05
9 changed files with 50 additions and 57 deletions
+1 -1
View File
@@ -151,7 +151,7 @@ fn prompt_slatepack() -> Result<String, ParseError> {
}
}
ReadResult::Input(line) => {
if SlatepackArmor::decode(&line).is_ok() {
if SlatepackArmor::decode(line.as_bytes()).is_ok() {
message = line;
break;
} else {