Skip to content

Commit

Permalink
derive: remove unnecessary allocation
Browse files Browse the repository at this point in the history
  • Loading branch information
djc committed Jul 26, 2024
1 parent 815180b commit 5a83872
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions askama_derive/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -626,12 +626,12 @@ mod tests {
[general]
whitespace = "suppress"
"#,
Some(&"minimize".to_owned()),
Some("minimize"),
)
.unwrap();
assert_eq!(config.whitespace, WhitespaceHandling::Minimize);

let config = Config::new(r#""#, Some(&"minimize".to_owned())).unwrap();
let config = Config::new(r#""#, Some("minimize")).unwrap();
assert_eq!(config.whitespace, WhitespaceHandling::Minimize);
}

Expand Down

0 comments on commit 5a83872

Please sign in to comment.