From bc2b69d1836cda80f7981892d6037f5a985534a9 Mon Sep 17 00:00:00 2001 From: CosminPerRam Date: Sun, 10 Dec 2023 19:46:12 +0200 Subject: [PATCH] fix: remove unwrapping in an assert --- crates/lib/src/errors/result.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/lib/src/errors/result.rs b/crates/lib/src/errors/result.rs index 4156e26..b7bdef1 100644 --- a/crates/lib/src/errors/result.rs +++ b/crates/lib/src/errors/result.rs @@ -12,7 +12,7 @@ mod tests { #[test] fn test_gdresult_ok() { let result: GDResult = Ok(42); - assert_eq!(result.unwrap(), 42); + assert_eq!(result, Ok(42)); } // Testing Err variant of the GDResult type