From 9835e2ae736235810b4ea1c162ca5e65c547e770 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 18 May 2024 04:49:50 +0200 Subject: Merging upstream version 1.71.1+dfsg1. Signed-off-by: Daniel Baumann --- vendor/spdx-rs/src/parsers/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vendor/spdx-rs/src/parsers/mod.rs') diff --git a/vendor/spdx-rs/src/parsers/mod.rs b/vendor/spdx-rs/src/parsers/mod.rs index 59ce03bae..48c863fca 100644 --- a/vendor/spdx-rs/src/parsers/mod.rs +++ b/vendor/spdx-rs/src/parsers/mod.rs @@ -777,7 +777,7 @@ mod test_super { .contains(&"Person: Jane Doe ()".to_string())); assert_eq!( document_creation_information.creation_info.created, - Utc.ymd(2010, 1, 29).and_hms(18, 30, 22) + Utc.with_ymd_and_hms(2010, 1, 29, 18, 30, 22).unwrap() ); assert_eq!( document_creation_information.creation_info.creator_comment, @@ -1050,7 +1050,7 @@ THE SOFTWARE IS PROVIDED �AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMP annotations[2], Annotation::new( "Person: Suzanne Reviewer".to_string(), - Utc.ymd(2011, 3, 13).and_hms(0, 0, 0), + Utc.with_ymd_and_hms(2011, 3, 13, 0, 0, 0).unwrap(), AnnotationType::Review, Some("SPDXRef-DOCUMENT".to_string()), "Another example reviewer.".to_string() -- cgit v1.2.3