From ebf9c06100ab87cd958fbbc9dbbaac5099af5122 Mon Sep 17 00:00:00 2001 From: Polesznyák Márk Date: Tue, 30 Sep 2025 10:20:45 +0200 Subject: fix: clippy lints --- Cargo.toml | 10 +++++++--- src/lib.rs | 1 + 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1befc70..a7bbeab 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,11 +8,15 @@ license = "MIT" repository = "https://github.com/pml68/iced_custom_highlighter" categories = ["gui"] keywords = ["gui", "ui", "graphics", "interface", "widgets"] -rust-version = "1.80" +rust-version = "1.88" [dependencies] -syntect = { version = "5.2", default-features = false, features = ["regex-fancy"] } -two-face = { version = "0.4.3", default-features = false, features = ["syntect-fancy"] } +syntect = { version = "5.2", default-features = false, features = [ + "regex-fancy", +] } +two-face = { version = "0.4", default-features = false, features = [ + "syntect-fancy", +] } [dependencies.iced_core] git = "https://github.com/pml68/iced" diff --git a/src/lib.rs b/src/lib.rs index 5506d0e..94ff5e9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -280,6 +280,7 @@ where /// The settings of a [`Highlighter`]. #[derive(Debug, Clone, PartialEq)] +#[allow(unpredictable_function_pointer_comparisons)] pub struct Settings { /// Custom scopes used for parsing the code. /// -- cgit v1.2.3