mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 13:21:01 +00:00
fixes for nightly clippy (#1618)
This commit is contained in:
committed by
Bastian Köcher
parent
9592b55fea
commit
f58e076ca2
@@ -121,7 +121,7 @@ impl From<Option<MetricsAddress>> for MetricsParams {
|
||||
/// Returns metric name optionally prefixed with given prefix.
|
||||
pub fn metric_name(prefix: Option<&str>, name: &str) -> String {
|
||||
if let Some(prefix) = prefix {
|
||||
format!("{}_{}", prefix, name)
|
||||
format!("{prefix}_{name}")
|
||||
} else {
|
||||
name.into()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user