clippy: remove unneeded return statement (needless_return).

This commit is contained in:
Matthias Krüger 2017-11-29 14:55:38 +01:00 committed by Joe Wilm
parent 9e6dd81ad9
commit ffac0f5840
1 changed files with 1 additions and 1 deletions

View File

@ -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) {