]> git.scottworley.com Git - tablify/blobdiff - src/lib.rs
Don't compare entire Config in tests
[tablify] / src / lib.rs
index b52806a744df217691d50d43d471f01cdbd15e0d..d55aa53027e90c2e063ede8e80f0ee0bb9022b29 100644 (file)
@@ -489,10 +489,10 @@ mod tests {
     #[test]
     fn test_read_config() {
         assert_eq!(
     #[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"[..]);
         );
 
         let bad_num = read_config(&b"!col_threshold foo"[..]);