Skip to content

Commit

Permalink
Merge PR #114 from vbrandl/fix/clippy-get-first
Browse files Browse the repository at this point in the history
Fix clippy lint `clippy::get-first`
  • Loading branch information
kaj committed Aug 19, 2022
2 parents 4b13f9b + 312fbac commit e28e9e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/templates/utils.rs
Expand Up @@ -125,7 +125,7 @@ impl<'a> ToHtmlEscapingWriter<'a> {
out: &mut impl Write,
data: &[u8],
) -> io::Result<usize> {
let next = data.get(0);
let next = data.first();
out.write_all(match next {
Some(b'"') => b"&quot;",
Some(b'&') => b"&amp;",
Expand Down

0 comments on commit e28e9e0

Please sign in to comment.