mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +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]
|
#[test]
|
||||||
fn test_gdresult_ok() {
|
fn test_gdresult_ok() {
|
||||||
let result: GDResult<u32> = Ok(42);
|
let result: GDResult<u32> = Ok(42);
|
||||||
assert_eq!(result.unwrap(), 42);
|
assert_eq!(result, Ok(42));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Testing Err variant of the GDResult type
|
// Testing Err variant of the GDResult type
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue