mirror of
https://github.com/jwinterm/grin-wallet.git
synced 2026-12-04 04:43:58 +01:00
refactor to pass slices around and not &Vec<> (#498)
cleaned up a couple of unwrap() calls
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user