diff options
author | Joe Wilm <joe@jwilm.com> | 2016-11-20 07:45:18 -0800 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2016-11-20 07:45:18 -0800 |
commit | 52a3b0aece97ea9c3df179c3f0eebd2a26535504 (patch) | |
tree | 79090f93a3554139ace57960c704e38b698c42b9 /tests | |
parent | d964de708d8320048938533235bdfab40dc60804 (diff) | |
download | alacritty-52a3b0aece97ea9c3df179c3f0eebd2a26535504.tar.gz alacritty-52a3b0aece97ea9c3df179c3f0eebd2a26535504.zip |
Remove unnecessary slicing
json::from_str takes a &str which will auto deref from &String.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ref.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ref.rs b/tests/ref.rs index f17de6c7..349b565e 100644 --- a/tests/ref.rs +++ b/tests/ref.rs @@ -52,8 +52,8 @@ mod reference { let serialized_size = read_string(ref_file!($name, "size.json")); let serialized_grid = read_string(ref_file!($name, "grid.json")); - let size: SizeInfo = json::from_str(&serialized_size[..]).unwrap(); - let grid: Grid<Cell> = json::from_str(&serialized_grid[..]).unwrap(); + let size: SizeInfo = json::from_str(&serialized_size).unwrap(); + let grid: Grid<Cell> = json::from_str(&serialized_grid).unwrap(); let mut terminal = Term::new(size); let mut parser = ansi::Processor::new(); |