From ffac0f5840981ee5b32e25541f7931a7792180d6 Mon Sep 17 00:00:00 2001 From: Matthias Krüger Date: Wed, 29 Nov 2017 14:55:38 +0100 Subject: clippy: remove unneeded return statement (needless_return). --- src/display.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/display.rs') 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) { -- cgit v1.2.3-54-g00ecf