Skip to content

Commit

Permalink
fix: Burrego clippy format_push_string warning
Browse files Browse the repository at this point in the history
  • Loading branch information
viccuad committed Jul 5, 2022
1 parent 013c806 commit 8ac5b68
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/burrego/src/opa/builtins/regex.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use anyhow::{anyhow, Result};
use core::fmt::Display;
use regex::{escape as regex_escape, Regex};
use std::fmt::Write as _; // import without risk of name clashing
use std::{fmt, str::FromStr};

pub fn split(args: &[serde_json::Value]) -> Result<serde_json::Value> {
Expand Down Expand Up @@ -117,7 +118,7 @@ impl Display for ExpressionList {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
let mut result = String::new();
for expression in self.0.iter() {
result.push_str(&format!("{}", expression));
write!(result, "{}", expression)?;
}
write!(f, "{}", result)
}
Expand Down

0 comments on commit 8ac5b68

Please sign in to comment.