Skip to content

Commit 02d3ab8

Browse files
committed
fix: clippy lints
1 parent a4981f6 commit 02d3ab8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

markdown-renderer/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ static ADAPTERS: Lazy<HashMap<&'static str, SyntectAdapter>> = Lazy::new(|| {
128128

129129
for theme in THEMES.iter() {
130130
let adapter = SyntectAdapterBuilder::new()
131-
.theme(*theme)
131+
.theme(theme)
132132
.syntax_set(&SYNTAX_SET)
133133
.theme_set(&THEME_SET)
134134
.build();

markdown-renderer/src/syntect_plugin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ impl SyntectAdapter {
4646
// fall back to HTML classes.
4747
let mut html_generator = ClassedHTMLGenerator::new_with_class_style(
4848
syntax,
49-
&self.syntax_set,
49+
self.syntax_set,
5050
ClassStyle::Spaced,
5151
);
5252
for line in LinesWithEndings::from(code) {

0 commit comments

Comments
 (0)