Skip to content

Commit 0f5c2ec

Browse files
committed
style: fix clippy warnings
1 parent 33d6f7e commit 0f5c2ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/smoke_test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,13 @@ fn input(name: &str) -> String {
8484

8585
async fn test_policy(bundle_name: &str, data: Option<&str>) -> AnyResult<serde_json::Value> {
8686
let input = if let Some(data) = data {
87-
let input_bytes = tokio::fs::read(input(&format!("{}.json", data))).await?;
87+
let input_bytes = tokio::fs::read(input(&format!("{data}.json"))).await?;
8888
serde_json::from_slice(&input_bytes[..])?
8989
} else {
9090
serde_json::Value::Object(serde_json::Map::default())
9191
};
9292
eval_policy(
93-
&bundle(&format!("{}.rego.tar.gz", bundle_name)),
93+
&bundle(&format!("{bundle_name}.rego.tar.gz")),
9494
"fixtures",
9595
&input,
9696
)

0 commit comments

Comments
 (0)