diff options
author | Matthias Krüger <matthias.krueger@famsik.de> | 2017-11-29 14:55:38 +0100 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2017-12-03 12:50:40 -0800 |
commit | ffac0f5840981ee5b32e25541f7931a7792180d6 (patch) | |
tree | 50b5b5a753aaf93e0e9fe8e0c34038e297f96852 | |
parent | 9e6dd81ad91e4d386aacd5a7353c8701d09bf7bc (diff) | |
download | alacritty-ffac0f5840981ee5b32e25541f7931a7792180d6.tar.gz alacritty-ffac0f5840981ee5b32e25541f7931a7792180d6.zip |
clippy: remove unneeded return statement (needless_return).
-rw-r--r-- | src/display.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/display.rs b/src/display.rs index 862be468..52d0c972 100644 --- a/src/display.rs +++ b/src/display.rs @@ -242,7 +242,7 @@ impl Display { let cell_width = (metrics.average_advance + font.offset().x as f64) as u32; let cell_height = (metrics.line_height + font.offset().y as f64) as u32; - return Ok((glyph_cache, cell_width as f32, cell_height as f32)); + Ok((glyph_cache, cell_width as f32, cell_height as f32)) } pub fn update_glyph_cache(&mut self, config: &Config, font_size_delta: i8) { |