From fa8b547998d23b948cadde2c9e8f35b9055f9189 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Wed, 2 Oct 2024 21:54:33 -0700 Subject: [PATCH 1/1] Don't compare entire Config in tests --- src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index b52806a..d55aa53 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -489,10 +489,10 @@ mod tests { #[test] fn test_read_config() { assert_eq!( - read_config(&b"!col_threshold 10"[..]).unwrap(), - Config { - column_threshold: 10 - } + read_config(&b"!col_threshold 10"[..]) + .unwrap() + .column_threshold, + 10 ); let bad_num = read_config(&b"!col_threshold foo"[..]); -- 2.44.1