mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
Strip a single leading tab when rendering dataflow diffs
This commit is contained in:
@@ -578,7 +578,7 @@ fn diff_pretty<T, C>(new: T, old: T, ctxt: &C) -> String
|
||||
return String::new();
|
||||
}
|
||||
|
||||
let re = Regex::new("\u{001f}([+-])").unwrap();
|
||||
let re = Regex::new("\t?\u{001f}([+-])").unwrap();
|
||||
|
||||
let raw_diff = format!("{:#?}", DebugDiffWithAdapter { new, old, ctxt });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user