Skip to content

Commit

Permalink
fix: make fmt
Browse files Browse the repository at this point in the history
Signed-off-by: zongz <[email protected]>
  • Loading branch information
zong-zhe committed Oct 30, 2023
1 parent e67f708 commit 686dd5e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions kclvm/cmd/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -545,8 +545,11 @@ fn test_multi_mod_file() {
match exec_program(sess.clone(), &settings.try_into().unwrap()) {
Ok(res) => {
assert_eq!(res.yaml_result, "kcl1: hello 1\nkcl2: hello 2");
assert_eq!(res.json_result, "[{\"kcl1\": \"hello 1\", \"kcl2\": \"hello 2\"}]");
},
assert_eq!(
res.json_result,
"[{\"kcl1\": \"hello 1\", \"kcl2\": \"hello 2\"}]"
);
}
Err(_) => panic!("unreachable code."),
}
}
Expand Down
2 changes: 1 addition & 1 deletion kclvm/config/src/modfile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ pub fn get_pkg_root_from_paths(file_paths: &[String], workdir: String) -> Result
} else if !workdir.is_empty() {
return Ok(workdir);
} else {
return Ok("".to_string())
return Ok("".to_string());
}
}

Expand Down

0 comments on commit 686dd5e

Please sign in to comment.