Skip to content

Commit e1701b6

Browse files
committed
cargo fmt
1 parent 77d7d5d commit e1701b6

File tree

2 files changed

+28
-4
lines changed

2 files changed

+28
-4
lines changed

tests/memory.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,13 @@ fn test_gc_control() -> Result<()> {
7878
assert_eq!(lua.gc_inc(0, 0, 0), GCMode::Generational);
7979
}
8080

81-
#[cfg(any(feature = "lua55", feature = "lua54", feature = "lua53", feature = "lua52", feature = "luau"))]
81+
#[cfg(any(
82+
feature = "lua55",
83+
feature = "lua54",
84+
feature = "lua53",
85+
feature = "lua52",
86+
feature = "luau"
87+
))]
8288
{
8389
assert!(lua.gc_is_running());
8490
lua.gc_stop();

tests/tests.rs

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,13 @@ fn test_pcall_xpcall() -> Result<()> {
675675
assert_eq!(globals.get::<String>("pcall_error")?, "testerror");
676676

677677
assert_eq!(globals.get::<bool>("xpcall_statusr")?, false);
678-
#[cfg(any(feature = "lua55", feature = "lua54", feature = "lua53", feature = "lua52", feature = "luajit"))]
678+
#[cfg(any(
679+
feature = "lua55",
680+
feature = "lua54",
681+
feature = "lua53",
682+
feature = "lua52",
683+
feature = "luajit"
684+
))]
679685
assert_eq!(globals.get::<std::string::String>("xpcall_error")?, "testerror");
680686
#[cfg(feature = "lua51")]
681687
assert!(globals
@@ -1167,7 +1173,13 @@ fn test_context_thread() -> Result<()> {
11671173
)
11681174
.into_function()?;
11691175

1170-
#[cfg(any(feature = "lua55", feature = "lua54", feature = "lua53", feature = "lua52", feature = "luajit52"))]
1176+
#[cfg(any(
1177+
feature = "lua55",
1178+
feature = "lua54",
1179+
feature = "lua53",
1180+
feature = "lua52",
1181+
feature = "luajit52"
1182+
))]
11711183
f.call::<()>(lua.current_thread())?;
11721184

11731185
#[cfg(any(
@@ -1343,7 +1355,13 @@ fn test_inspect_stack() -> Result<()> {
13431355
})?;
13441356
lua.globals().set("stack_info", stack_info)?;
13451357

1346-
#[cfg(any(feature = "lua55", feature = "lua54", feature = "lua53", feature = "lua52", feature = "luau"))]
1358+
#[cfg(any(
1359+
feature = "lua55",
1360+
feature = "lua54",
1361+
feature = "lua53",
1362+
feature = "lua52",
1363+
feature = "luau"
1364+
))]
13471365
lua.load(
13481366
r#"
13491367
local stack_info = stack_info

0 commit comments

Comments
 (0)