Skip to content

Commit

Permalink
Fix clippy lints (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
trevyn authored Dec 7, 2022
1 parent cd343c8 commit ceb478b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/fibonacci.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fn fibonacci_parallel(n: usize) -> usize {

fn main() {
rayon::ThreadPoolBuilder::new()
.thread_name(|idx| format!("Worker {}", idx))
.thread_name(|idx| format!("Worker {idx}"))
.build_global()
.expect("Failed to build thread pool.");

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ struct JsonVisitor<'a> {
impl<'a> tracing_subscriber::field::Visit for JsonVisitor<'a> {
fn record_debug(&mut self, field: &Field, value: &dyn std::fmt::Debug) {
self.object
.insert(field.name(), JsonValue::String(format!("{:?}", value)));
.insert(field.name(), JsonValue::String(format!("{value:?}")));
}
}

Expand Down

0 comments on commit ceb478b

Please sign in to comment.