From daba4cc0e58639e5cbbe7e8293bf5a34b12f3eca Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sat, 4 Mar 2023 03:34:50 +0100 Subject: refactor(tvix/nix-compat): address clippy in nixbase32.rs tests Change-Id: If8820cba4cf19bf0f7aa27e0d93b70eb7b4ee81f Reviewed-on: https://cl.tvl.fyi/c/depot/+/8221 Autosubmit: flokli Tested-by: BuildkiteCI Reviewed-by: tazjin --- tvix/nix-compat/src/nixbase32.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tvix/nix-compat/src') diff --git a/tvix/nix-compat/src/nixbase32.rs b/tvix/nix-compat/src/nixbase32.rs index 0c7843fc8982..3d1c276c63bb 100644 --- a/tvix/nix-compat/src/nixbase32.rs +++ b/tvix/nix-compat/src/nixbase32.rs @@ -150,7 +150,7 @@ mod tests { } None => { // the decode needs to be an error - assert_eq!(true, super::decode(enc.as_bytes()).is_err()); + assert!(super::decode(enc.as_bytes()).is_err()); } } } -- cgit 1.4.1