File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change 22
33#![ cfg_attr( not( debug_assertions) , windows_subsystem = "windows" ) ] // hide console window on Windows in release
44#![ expect( rustdoc:: missing_crate_level_docs) ] // it's an example
5+ #![ allow( clippy:: allow_attributes, clippy:: never_loop) ]
56
67#[ global_allocator]
78static GLOBAL : mimalloc:: MiMalloc = mimalloc:: MiMalloc ; // Much faster allocator, can give 20% speedups: https://github.com/emilk/egui/pull/7029
Original file line number Diff line number Diff line change @@ -359,6 +359,7 @@ impl CodeTheme {
359359 // function, but at the cost of more code duplication.
360360 #[ expect( clippy:: needless_pass_by_value) ]
361361 fn dark_with_font_id ( font_id : egui:: FontId ) -> Self {
362+ #![ expect( clippy:: mem_forget) ]
362363 use egui:: { Color32 , TextFormat } ;
363364 Self {
364365 dark_mode : true ,
@@ -376,6 +377,7 @@ impl CodeTheme {
376377 // The syntect version takes it by value
377378 #[ expect( clippy:: needless_pass_by_value) ]
378379 fn light_with_font_id ( font_id : egui:: FontId ) -> Self {
380+ #![ expect( clippy:: mem_forget) ]
379381 use egui:: { Color32 , TextFormat } ;
380382 Self {
381383 dark_mode : false ,
You can’t perform that action at this time.
0 commit comments