summaryrefslogtreecommitdiff
path: root/alacritty_terminal/tests/ref.rs
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2020-03-26 14:56:41 +0000
committerGitHub <noreply@github.com>2020-03-26 14:56:41 +0000
commitfde2424b398dadd2310686b365041189decd1d63 (patch)
tree69e4486a4d3735b9fba19eedf9744365bd8a6d09 /alacritty_terminal/tests/ref.rs
parent06c07d3c75d2209c885545134702ca3b1756474a (diff)
downloadalacritty-fde2424b398dadd2310686b365041189decd1d63.tar.gz
alacritty-fde2424b398dadd2310686b365041189decd1d63.zip
Remove `fs::read_to_string` reimplementations
After two previous PRs already removed some instances of reimplementations of the `fs::read_to_string` functionality, this removes the last remaining occurence and with it all instances of `File::open`. So this should remove them all for good.
Diffstat (limited to 'alacritty_terminal/tests/ref.rs')
-rw-r--r--alacritty_terminal/tests/ref.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/alacritty_terminal/tests/ref.rs b/alacritty_terminal/tests/ref.rs
index b5371e58..a286d97d 100644
--- a/alacritty_terminal/tests/ref.rs
+++ b/alacritty_terminal/tests/ref.rs
@@ -1,7 +1,7 @@
use serde::Deserialize;
use serde_json as json;
-use std::fs::{read_to_string, File};
+use std::fs::{self, File};
use std::io::{self, Read};
use std::path::Path;
@@ -87,9 +87,9 @@ impl EventListener for Mock {
fn ref_test(dir: &Path) {
let recording = read_u8(dir.join("alacritty.recording"));
- let serialized_size = read_to_string(dir.join("size.json")).unwrap();
- let serialized_grid = read_to_string(dir.join("grid.json")).unwrap();
- let serialized_cfg = read_to_string(dir.join("config.json")).unwrap();
+ let serialized_size = fs::read_to_string(dir.join("size.json")).unwrap();
+ let serialized_grid = fs::read_to_string(dir.join("grid.json")).unwrap();
+ let serialized_cfg = fs::read_to_string(dir.join("config.json")).unwrap();
let size: SizeInfo = json::from_str(&serialized_size).unwrap();
let grid: Grid<Cell> = json::from_str(&serialized_grid).unwrap();