fix missing unwrap in tests

This commit is contained in:
kyren 2018-02-06 20:29:48 -05:00
parent b056ed2c4e
commit 7780a91e19
1 changed files with 1 additions and 1 deletions

View File

@ -527,7 +527,7 @@ fn test_registry_value() {
let f = lua.create_function(move |lua, ()| { let f = lua.create_function(move |lua, ()| {
if let Some(r) = r.take() { if let Some(r) = r.take() {
assert_eq!(lua.registry_value::<i32>(&r)?, 42); assert_eq!(lua.registry_value::<i32>(&r)?, 42);
lua.remove_registry_value(r); lua.remove_registry_value(r).unwrap();
} else { } else {
panic!(); panic!();
} }