summaryrefslogtreecommitdiff
path: root/helix-view/src
diff options
context:
space:
mode:
authorBlaž Hrastnik2022-10-21 04:26:00 +0000
committerBlaž Hrastnik2022-10-21 04:26:22 +0000
commit511d9d8a527d8c3dbce6ae1f9a0f5d7beaaf4b28 (patch)
treefdd8d666ec10a28b10658e18b702f8f3e0bc1577 /helix-view/src
parent7e29ee6daeb86fbd20a8b5eaae30b2e0f868147d (diff)
cargo fmt
Diffstat (limited to 'helix-view/src')
-rw-r--r--helix-view/src/document.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs
index ca07431b..9a7febd2 100644
--- a/helix-view/src/document.rs
+++ b/helix-view/src/document.rs
@@ -1372,7 +1372,7 @@ mod test {
.to_string();
let expectation = std::fs::read_to_string(ref_path).unwrap();
assert_eq!(text[..], expectation[..]);
- }
+ }
};
($name:ident, $label:expr) => {
decode!($name, $label, $label);
@@ -1389,11 +1389,11 @@ mod test {
let ref_path = base_path.join(format!("{}_out_ref.txt", $label));
assert!(path.exists());
assert!(ref_path.exists());
-
+
let text = Rope::from_str(&std::fs::read_to_string(path).unwrap());
let mut buf: Vec<u8> = Vec::new();
helix_lsp::block_on(to_writer(&mut buf, encoding, &text)).unwrap();
-
+
let expectation = std::fs::read(ref_path).unwrap();
assert_eq!(buf, expectation);
}