Skip to content

Commit b17af2a

Browse files
committed
Update flake inputs
1 parent 194fecf commit b17af2a

File tree

4 files changed

+31
-31
lines changed

4 files changed

+31
-31
lines changed

flake.lock

Lines changed: 21 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/git.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ pub struct ArchivalVisitor<'a> {
523523
path: BString,
524524
}
525525

526-
impl<'a> ArchivalVisitor<'a> {
526+
impl ArchivalVisitor<'_> {
527527
fn pop_element(&mut self) {
528528
if let Some(pos) = self.path.rfind_byte(b'/') {
529529
self.path.resize(pos, 0);
@@ -540,7 +540,7 @@ impl<'a> ArchivalVisitor<'a> {
540540
}
541541
}
542542

543-
impl<'a> gix::traverse::tree::Visit for ArchivalVisitor<'a> {
543+
impl gix::traverse::tree::Visit for ArchivalVisitor<'_> {
544544
fn pop_front_tracked_path_and_set_current(&mut self) {
545545
self.path = self
546546
.path_deque
@@ -1010,7 +1010,7 @@ struct DiffBuilder<'a, F> {
10101010
formatter: F,
10111011
}
10121012

1013-
impl<'a, F: DiffFormatter + Callback> DiffBuilder<'a, F> {
1013+
impl<F: DiffFormatter + Callback> DiffBuilder<'_, F> {
10141014
#[allow(clippy::too_many_lines)]
10151015
fn handle(
10161016
&mut self,
@@ -1191,15 +1191,15 @@ impl<'a> SyntaxHighlightedDiffFormatter<'a> {
11911191
fn write(&self, output: &mut String, class: &str, data: &str) {
11921192
write!(output, r#"<span class="diff-{class}">"#).unwrap();
11931193
format_file_inner(output, data, FileIdentifier::Path(self.path), false).unwrap();
1194-
write!(output, r#"</span>"#).unwrap();
1194+
output.push_str("</span>");
11951195
}
11961196
}
11971197

1198-
impl<'a> DiffFormatter for SyntaxHighlightedDiffFormatter<'a> {
1198+
impl DiffFormatter for SyntaxHighlightedDiffFormatter<'_> {
11991199
fn file_header(&self, output: &mut String, data: Arguments<'_>) {
12001200
write!(output, r#"<span class="diff-file-header">"#).unwrap();
12011201
write!(output, "{data}").unwrap();
1202-
writeln!(output, r#"</span>"#).unwrap();
1202+
output.push_str("</span>\n");
12031203
}
12041204

12051205
fn binary(
@@ -1214,7 +1214,7 @@ impl<'a> DiffFormatter for SyntaxHighlightedDiffFormatter<'a> {
12141214
}
12151215
}
12161216

1217-
impl<'a> Callback for SyntaxHighlightedDiffFormatter<'a> {
1217+
impl Callback for SyntaxHighlightedDiffFormatter<'_> {
12181218
fn addition(&mut self, data: &str, dst: &mut String) {
12191219
self.write(dst, "add-line", data);
12201220
}

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ async fn main() -> Result<(), anyhow::Error> {
142142
.unwrap()
143143
.build_css();
144144
let css = Box::leak(
145-
format!(r#"@media (prefers-color-scheme: light){{{theme}}}"#)
145+
format!("@media (prefers-color-scheme: light){{{theme}}}")
146146
.into_boxed_str()
147147
.into_boxed_bytes(),
148148
);
@@ -155,7 +155,7 @@ async fn main() -> Result<(), anyhow::Error> {
155155
.unwrap()
156156
.build_css();
157157
let css = Box::leak(
158-
format!(r#"@media (prefers-color-scheme: dark){{{theme}}}"#)
158+
format!("@media (prefers-color-scheme: dark){{{theme}}}")
159159
.into_boxed_str()
160160
.into_boxed_bytes(),
161161
);

src/syntax_highlight.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ impl SyntaxHighlighterAdapter for ComrakHighlightAdapter {
145145
output: &mut dyn IoWrite,
146146
_attributes: HashMap<String, String>,
147147
) -> std::io::Result<()> {
148-
write!(output, r#"<pre>"#)
148+
write!(output, "<pre>")
149149
}
150150

151151
fn write_code_tag(

0 commit comments

Comments
 (0)