mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-05-06 15:27:28 +00:00
fix: remove unwrapping in an assert
This commit is contained in:
parent
55f498d45a
commit
bc2b69d183
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ mod tests {
|
|||
#[test]
|
||||
fn test_gdresult_ok() {
|
||||
let result: GDResult<u32> = Ok(42);
|
||||
assert_eq!(result.unwrap(), 42);
|
||||
assert_eq!(result, Ok(42));
|
||||
}
|
||||
|
||||
// Testing Err variant of the GDResult type
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue