Skip to content

Commit a73d1f5

Browse files
committed
cargo fmt
1 parent 2d00f38 commit a73d1f5

File tree

1 file changed

+7
-1
lines changed
  • crates/livesplit-auto-splitting/src/runtime/api

1 file changed

+7
-1
lines changed

crates/livesplit-auto-splitting/src/runtime/api/timer.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,13 @@ pub fn bind<T: Timer>(linker: &mut Linker<Context<T>>) -> Result<(), CreationErr
7070
name: "timer_reset",
7171
})?
7272
.func_wrap("env", "timer_current_split_index", {
73-
|caller: Caller<'_, Context<T>>| caller.data().timer.current_split_index().map_or(-1, |i| i as i32)
73+
|caller: Caller<'_, Context<T>>| {
74+
caller
75+
.data()
76+
.timer
77+
.current_split_index()
78+
.map_or(-1, |i| i as i32)
79+
}
7480
})
7581
.map_err(|source| CreationError::LinkFunction {
7682
source,

0 commit comments

Comments
 (0)