mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-18 13:55:23 -05:00
Remove unnecessary slicing
json::from_str takes a &str which will auto deref from &String.
This commit is contained in:
parent
d964de708d
commit
52a3b0aece
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue