about summary refs log tree commit diff
path: root/library/test/src/helpers/concurrency.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/test/src/helpers/concurrency.rs')
-rw-r--r--library/test/src/helpers/concurrency.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/test/src/helpers/concurrency.rs b/library/test/src/helpers/concurrency.rs
index e25f524ec05..eb211157371 100644
--- a/library/test/src/helpers/concurrency.rs
+++ b/library/test/src/helpers/concurrency.rs
@@ -6,7 +6,7 @@ pub fn get_concurrency() -> usize {
     if let Ok(value) = env::var("RUST_TEST_THREADS") {
         match value.parse::<NonZeroUsize>().ok() {
             Some(n) => n.get(),
-            _ => panic!("RUST_TEST_THREADS is `{}`, should be a positive integer.", value),
+            _ => panic!("RUST_TEST_THREADS is `{value}`, should be a positive integer."),
         }
     } else {
         thread::available_parallelism().map(|n| n.get()).unwrap_or(1)