Skip to content

Commit e5546e2

Browse files
committed
code cleanup
1 parent 5ae98c9 commit e5546e2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/config/interface.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,9 @@ impl LuaUserData for Terminal {
5858
Ok(())
5959
});
6060
#[cfg(target_os = "windows")]
61-
fields.add_field_method_get("shell", |_, this| Ok("windows not supported"));
61+
fields.add_field_method_get("shell", |_, _| Ok("windows not supported"));
6262
#[cfg(target_os = "windows")]
63-
fields.add_field_method_set("shell", |_, _, _: String| {
64-
Ok(())
65-
});
63+
fields.add_field_method_set("shell", |_, _, _: String| Ok(()));
6664
}
6765
}
6866

0 commit comments

Comments
 (0)