Skip to content

Commit 4e9a177

Browse files
committed
Fix tests
1 parent 6066089 commit 4e9a177

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/multi.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use mlua::{Error, ExternalError, IntoLuaMulti, Lua, MultiValue, Result, String, Value, Variadic};
1+
use mlua::{Error, ExternalError, Integer, IntoLuaMulti, Lua, MultiValue, Result, String, Value, Variadic};
22

33
#[test]
44
fn test_result_conversions() -> Result<()> {
@@ -65,7 +65,7 @@ fn test_multivalue() {
6565
multi.push_back(Value::Integer(1));
6666
multi.push_back(Value::Integer(2));
6767
multi.push_front(Value::Integer(3));
68-
assert_eq!(multi.iter().filter_map(|v| v.as_integer()).sum::<i64>(), 6);
68+
assert_eq!(multi.iter().filter_map(|v| v.as_integer()).sum::<Integer>(), 6);
6969

7070
let vec = multi.into_vec();
7171
assert_eq!(&vec, &[Value::Integer(3), Value::Integer(1), Value::Integer(2)]);

0 commit comments

Comments
 (0)