summaryrefslogtreecommitdiff
path: root/library/src/text/raw.rs
diff options
context:
space:
mode:
authorMarek Barvíř <barvirm@gmail.com>2023-04-16 11:10:35 +0200
committerGitHub <noreply@github.com>2023-04-16 11:10:35 +0200
commitee32e7ad1ce26d4eebe601344e0343cfb9c8f9bd (patch)
treee704cd3c622acbf9faca558dd808f284a7df78f3 /library/src/text/raw.rs
parent261b96da68890dd1054efb76a72ee997cb779bae (diff)
Clippy fixes (#581)
Diffstat (limited to 'library/src/text/raw.rs')
-rw-r--r--library/src/text/raw.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/src/text/raw.rs b/library/src/text/raw.rs
index c6fba253..6d90bc5b 100644
--- a/library/src/text/raw.rs
+++ b/library/src/text/raw.rs
@@ -285,7 +285,7 @@ fn to_syn(RgbaColor { r, g, b, a }: RgbaColor) -> synt::Color {
/// The syntect syntax definitions.
static SYNTAXES: Lazy<syntect::parsing::SyntaxSet> =
- Lazy::new(|| syntect::parsing::SyntaxSet::load_defaults_nonewlines());
+ Lazy::new(syntect::parsing::SyntaxSet::load_defaults_nonewlines);
/// The default theme used for syntax highlighting.
pub static THEME: Lazy<synt::Theme> = Lazy::new(|| synt::Theme {