diff options
author | Lukasz Woznicki <75632179+makr11st@users.noreply.github.com> | 2022-02-14 16:02:13 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-14 16:02:13 +0000 |
commit | c14c7302927c34e57dc548fb8859e6d827562391 (patch) | |
tree | ab0fb58e7eb84a81a9f5ac85082e2d416f771ad0 /crates/core/tedge_mapper/src/sm_c8y_mapper | |
parent | 1d7252075c4f0c5bc44ffbca13c8cd96945881ce (diff) | |
parent | 03124da93bf8788c0b79ce61219e3c8a2c603768 (diff) |
Use 'time' instead of 'chrono' due to CVE for thin_edge_json and all dependent crates [1/3]
Use 'time' instead of 'chrono' due to CVE for thin_edge_json and all dependent crates [1/3]
Diffstat (limited to 'crates/core/tedge_mapper/src/sm_c8y_mapper')
-rw-r--r-- | crates/core/tedge_mapper/src/sm_c8y_mapper/mapper.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/core/tedge_mapper/src/sm_c8y_mapper/mapper.rs b/crates/core/tedge_mapper/src/sm_c8y_mapper/mapper.rs index 2f91a329..7a76df52 100644 --- a/crates/core/tedge_mapper/src/sm_c8y_mapper/mapper.rs +++ b/crates/core/tedge_mapper/src/sm_c8y_mapper/mapper.rs @@ -618,7 +618,7 @@ mod tests { #[test_case("/path/to/another-variant-2021-10-25T07:45:41Z.log")] #[test_case("/yet-another-variant-2021-10-25T07:45:41Z.log")] fn test_datetime_parsing_from_path(file_path: &str) { - // checking that `get_date_from_file_path` unwraps a `chrono::NaiveDateTime` object. + // checking that `get_date_from_file_path` unwraps a `OffsetDateTime` object. // this should return an Ok Result. let path_buf = PathBuf::from_str(file_path).unwrap(); let path_buf_datetime = get_datetime_from_file_path(&path_buf); @@ -630,7 +630,7 @@ mod tests { #[test_case("/path/to/another-variant-07:45:41Z-2021-10-25T.log")] #[test_case("/yet-another-variant-2021-10-25T07:45Z.log")] fn test_datetime_parsing_from_path_fail(file_path: &str) { - // checking that `get_date_from_file_path` unwraps a `chrono::NaiveDateTime` object. + // checking that `get_date_from_file_path` unwraps a `OffsetDateTime` object. // this should return an err. let path_buf = PathBuf::from_str(file_path).unwrap(); let path_buf_datetime = get_datetime_from_file_path(&path_buf); |