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:
parent
b4c62bf159
commit
fed010fcd1
5 changed files with 15 additions and 14 deletions
|
|
@ -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()
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue