1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-25 14:05:41 -05:00

Remove unnecessary slicing

json::from_str takes a &str which will auto deref from &String.
This commit is contained in:
Joe Wilm 2016-11-20 07:45:18 -08:00
parent d964de708d
commit 52a3b0aece

View file

@ -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();