misc: clippy: add manual_string_new

Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>
On-behalf-of: SAP philipp.schuster@sap.com
This commit is contained in:
Philipp Schuster 2025-11-18 12:27:30 +01:00 committed by Rob Bradford
parent b4c62bf159
commit fed010fcd1
5 changed files with 15 additions and 14 deletions

View file

@ -26,10 +26,10 @@ impl<T: Debug> Display for Exception<T> {
self.ip,
self.error
.map(|e| format!(": error {e:x}"))
.unwrap_or_else(|| "".to_owned()),
.unwrap_or_default(),
self.payload
.map(|payload| format!(": payload {payload:x}"))
.unwrap_or_else(|| "".to_owned())
.unwrap_or_default()
)
}
}