Skip to content

Commit 983ac23

Browse files
committed
Fix
1 parent 5aa01f0 commit 983ac23

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

crates/egui_demo_app/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
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]
78
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc; // Much faster allocator, can give 20% speedups: https://github.com/emilk/egui/pull/7029

crates/egui_extras/src/syntax_highlighting.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)