diff options
author | Joe Wilm <joe@jwilm.com> | 2017-11-26 11:48:28 -0800 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2018-01-13 13:02:54 -0800 |
commit | 120a37976941d19516aedbcadbbd720ac4b439d5 (patch) | |
tree | 1ca60caabac37a89e0e97b72025a0be325a94d19 | |
parent | 8aa8422bccdf0634774ddbfe5b35e05a637a3f17 (diff) | |
download | alacritty-120a37976941d19516aedbcadbbd720ac4b439d5.tar.gz alacritty-120a37976941d19516aedbcadbbd720ac4b439d5.zip |
Cleanup style
-rw-r--r-- | src/renderer/mod.rs | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/renderer/mod.rs b/src/renderer/mod.rs index c226a88d..f9211165 100644 --- a/src/renderer/mod.rs +++ b/src/renderer/mod.rs @@ -1348,11 +1348,11 @@ impl Atlas { } /// Insert a RasterizedGlyph into the texture atlas - pub fn insert(&mut self, - glyph: &RasterizedGlyph, - active_tex: &mut u32) - -> Result<Glyph, AtlasInsertError> - { + pub fn insert( + &mut self, + glyph: &RasterizedGlyph, + active_tex: &mut u32 + ) -> Result<Glyph, AtlasInsertError> { if glyph.width > self.width || glyph.height > self.height { return Err(AtlasInsertError::GlyphTooLarge); } @@ -1376,11 +1376,7 @@ impl Atlas { /// Internal function for use once atlas has been checked for space. GL /// errors could still occur at this point if we were checking for them; /// hence, the Result. - fn insert_inner(&mut self, - glyph: &RasterizedGlyph, - active_tex: &mut u32) - -> Glyph - { + fn insert_inner(&mut self, glyph: &RasterizedGlyph, active_tex: &mut u32) -> Glyph { let offset_y = self.row_baseline; let offset_x = self.row_extent; let height = glyph.height as i32; |