aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPolesznyák Márk <contact@pml68.dev>2025-09-30 10:20:45 +0200
committerPolesznyák Márk <contact@pml68.dev>2025-09-30 10:20:45 +0200
commitebf9c06100ab87cd958fbbc9dbbaac5099af5122 (patch)
tree5d8e1bbd02f9efe81015ba9073f3cd8689ab3143
parentfeat: switch from `onig` to `fancy` (diff)
downloadiced_custom_highlighter-ebf9c06100ab87cd958fbbc9dbbaac5099af5122.tar.gz
fix: clippy lints
-rw-r--r--Cargo.toml10
-rw-r--r--src/lib.rs1
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<T> {
/// Custom scopes used for parsing the code.
///