From bea73a8fde58c010acbc7d546c72ba5f8b3418c7 Mon Sep 17 00:00:00 2001 From: Joonas Javanainen Date: Sun, 12 Aug 2018 19:33:17 +0300 Subject: [PATCH] Don't listen to clippy --- src/fonts.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/fonts.rs b/src/fonts.rs index 0de6001..25c63f3 100644 --- a/src/fonts.rs +++ b/src/fonts.rs @@ -122,14 +122,14 @@ impl FontGlyphRange { unsafe fn to_ptr(&self, atlas: *mut sys::ImFontAtlas) -> *const sys::ImWchar { match &self.0 { - FontGlyphRangeData::Chinese => sys::ImFontAtlas_GetGlyphRangesChinese(atlas), - FontGlyphRangeData::Cyrillic => sys::ImFontAtlas_GetGlyphRangesCyrillic(atlas), - FontGlyphRangeData::Default => sys::ImFontAtlas_GetGlyphRangesDefault(atlas), - FontGlyphRangeData::Japanese => sys::ImFontAtlas_GetGlyphRangesJapanese(atlas), - FontGlyphRangeData::Korean => sys::ImFontAtlas_GetGlyphRangesKorean(atlas), - FontGlyphRangeData::Thai => sys::ImFontAtlas_GetGlyphRangesThai(atlas), + &FontGlyphRangeData::Chinese => sys::ImFontAtlas_GetGlyphRangesChinese(atlas), + &FontGlyphRangeData::Cyrillic => sys::ImFontAtlas_GetGlyphRangesCyrillic(atlas), + &FontGlyphRangeData::Default => sys::ImFontAtlas_GetGlyphRangesDefault(atlas), + &FontGlyphRangeData::Japanese => sys::ImFontAtlas_GetGlyphRangesJapanese(atlas), + &FontGlyphRangeData::Korean => sys::ImFontAtlas_GetGlyphRangesKorean(atlas), + &FontGlyphRangeData::Thai => sys::ImFontAtlas_GetGlyphRangesThai(atlas), - FontGlyphRangeData::Custom(ptr) => *ptr, + &FontGlyphRangeData::Custom(ptr) => ptr, } } }