Skip to content

Commit

Permalink
fixup! edit: implement pazi edit
Browse files Browse the repository at this point in the history
  • Loading branch information
euank committed Aug 4, 2018
1 parent 69b8cca commit 716914e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/edit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,12 @@ pub fn serialize(matches: &Vec<(String, f64)>) -> String {
pub fn deserialize(s: &str) -> Result<HashMap<String, f64>, String> {
let mut res = HashMap::new();
for mut line in s.lines() {
line = line.trim();

if line.len() == 0 || line.starts_with('#') {
continue;
}

line = line.trim_right();

let parts: Vec<&str> = line.splitn(2, char::is_whitespace).collect();

if parts.len() != 2 {
Expand Down

0 comments on commit 716914e

Please sign in to comment.