From 8a2ef9ea01b4e7ec27090e3d98631a1d73ea5a8d Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 4 Dec 2023 14:58:11 +0100 Subject: [PATCH] Enable workspace lints for tests --- tests/Cargo.toml | 3 +++ tests/src/tests.rs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/Cargo.toml b/tests/Cargo.toml index 006b78981..9b901a7b2 100644 --- a/tests/Cargo.toml +++ b/tests/Cargo.toml @@ -32,3 +32,6 @@ harness = false name = "benches" path = "src/benches.rs" harness = false + +[lints] +workspace = true diff --git a/tests/src/tests.rs b/tests/src/tests.rs index eb2a5f062..82876e6cc 100644 --- a/tests/src/tests.rs +++ b/tests/src/tests.rs @@ -430,7 +430,7 @@ fn test( if world.print.frames { for frame in &document.pages { - writeln!(output, "{:#?}\n", frame).unwrap(); + writeln!(output, "{frame:#?}\n").unwrap(); } }