diff options
author | kyren <kerriganw@gmail.com> | 2018-02-06 20:29:48 -0500 |
---|---|---|
committer | kyren <kerriganw@gmail.com> | 2018-02-06 20:29:48 -0500 |
commit | 7780a91e192e1ed5a946d97062bb68449a9f96b9 (patch) | |
tree | 56e1e0da1ac54fb459ff575dd62effefbecc08f2 | |
parent | b056ed2c4ee1ec27b327a65bf899f105a95b3f35 (diff) | |
download | mlua-7780a91e192e1ed5a946d97062bb68449a9f96b9.zip |
fix missing unwrap in tests
-rw-r--r-- | src/tests.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests.rs b/src/tests.rs index cbad78c..1185b1b 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -527,7 +527,7 @@ fn test_registry_value() { let f = lua.create_function(move |lua, ()| { if let Some(r) = r.take() { assert_eq!(lua.registry_value::<i32>(&r)?, 42); - lua.remove_registry_value(r); + lua.remove_registry_value(r).unwrap(); } else { panic!(); } |