Updates for new rustfmt

This commit is contained in:
sharkdp authored and David Peter committed 2018-05-14 19:04:13 +02:00
1 parent fcecd97224
commit 15b9acd12f
3 files changed
+4 -6

No files matched your search

+2 -1
View File
@@ -23,7 +23,8 @@ pub fn get_git_diff(filename: &str) -> Option<LineChanges> {
diff_options.pathspec(pathspec);
diff_options.context_lines(0);
let diff = repo.diff_index_to_workdir(None, Some(&mut diff_options))
let diff = repo
.diff_index_to_workdir(None, Some(&mut diff_options))
.ok()?;
let mut line_changes: LineChanges = HashMap::new();