|
|
@ -120,7 +120,10 @@ impl Storage { |
|
|
|
// TODO: uncomment when innit saving implemented
|
|
|
|
// TODO: uncomment when innit saving implemented
|
|
|
|
let passtest = match lines.next() { |
|
|
|
let passtest = match lines.next() { |
|
|
|
Some(line) => line?, |
|
|
|
Some(line) => line?, |
|
|
|
None => return Err(io::Error::new(io::ErrorKind::InvalidData, "Bad storage db format: no passphrase in the beginnning")), |
|
|
|
None => return Err( |
|
|
|
|
|
|
|
io::Error::new(io::ErrorKind::InvalidData, |
|
|
|
|
|
|
|
"Bad storage db format: no passphrase in the beginnning" |
|
|
|
|
|
|
|
)), |
|
|
|
}; |
|
|
|
}; |
|
|
|
for line in lines { |
|
|
|
for line in lines { |
|
|
|
match line { |
|
|
|
match line { |
|
|
|