tokio-rs / tracing

Application level tracing for Rust.
https://tracing.rs
MIT License
5.53k stars 725 forks source link

style: simplify statements for readability #3143

Open hamirmahal opened 6 days ago

hamirmahal commented 6 days ago

Fixes #3142

Motivation

We can simplify some statements, like

(len, format!("http://{}/{}", authority, letter))

to improve code readability.

Solution

We replace lines like

(len, format!("http://{}/{}", authority, letter))

with

(len, format!("http://{authority}/{letter}"))
hamirmahal commented 5 days ago

Sure! I'll do that right now.