summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@ifm.com>2022-08-25 12:44:44 +0200
committerMatthias Beyer <matthias.beyer@ifm.com>2022-08-25 12:44:44 +0200
commitba9887a5a9a56b75973823fa37ea563175712a14 (patch)
tree95372f955298192a6235be417f5a7d5559a3060a
parente3af8e42a1b9dc3c76783c98e09b3693db0e986d (diff)
Remove useless use of String::from()style-fixes
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
-rw-r--r--crates/core/c8y_smartrest/src/smartrest_deserializer.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/core/c8y_smartrest/src/smartrest_deserializer.rs b/crates/core/c8y_smartrest/src/smartrest_deserializer.rs
index 8f64700a..b9be947d 100644
--- a/crates/core/c8y_smartrest/src/smartrest_deserializer.rs
+++ b/crates/core/c8y_smartrest/src/smartrest_deserializer.rs
@@ -555,10 +555,10 @@ mod tests {
#[test_case("2021-09-21T11:40:27+02:00", "2021-09-22T11:40:27+0200"; "with colon date from")]
#[test_case("2021-09-21T11:40:27+0200", "2021-09-22T11:40:27+02:00"; "with colon date to")]
fn deserialize_smartrest_log_file_request_operation(date_from: &str, date_to: &str) {
- let smartrest = String::from(&format!(
+ let smartrest = format!(
"522,DeviceSerial,syslog,{},{},ERROR,1000",
date_from, date_to
- ));
+ );
let log = SmartRestLogRequest::from_smartrest(&smartrest);
assert!(log.is_ok());
}