diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2023-01-30 09:51:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-30 09:51:23 +0100 |
commit | 3003d86264680433e789d2726d0d12d2c6267c40 (patch) | |
tree | c7e74c13df73d05ec75ee8feec6416733e1de141 /askama_derive/src/parser.rs | |
parent | 23326b4765b04cb13dd6c72f2103ff9bd6d44d7d (diff) | |
download | askama-3003d86264680433e789d2726d0d12d2c6267c40.tar.gz askama-3003d86264680433e789d2726d0d12d2c6267c40.tar.bz2 askama-3003d86264680433e789d2726d0d12d2c6267c40.zip |
Apply clippy suggestions for 1.67 (#769)
Diffstat (limited to 'askama_derive/src/parser.rs')
-rw-r--r-- | askama_derive/src/parser.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/askama_derive/src/parser.rs b/askama_derive/src/parser.rs index 650eabf..c59177a 100644 --- a/askama_derive/src/parser.rs +++ b/askama_derive/src/parser.rs @@ -1238,7 +1238,7 @@ pub(crate) fn parse<'a>( match parse_template(src, &state) { Ok((left, res)) => { if !left.is_empty() { - Err(format!("unable to parse template:\n\n{:?}", left).into()) + Err(format!("unable to parse template:\n\n{left:?}").into()) } else { Ok(res) } @@ -1251,7 +1251,7 @@ pub(crate) fn parse<'a>( let source_after = match source_after.char_indices().enumerate().take(41).last() { Some((40, (i, _))) => format!("{:?}...", &source_after[..i]), - _ => format!("{:?}", source_after), + _ => format!("{source_after:?}"), }; let (row, last_line) = source_before.lines().enumerate().last().unwrap(); |