We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 028ce97 commit f40b13aCopy full SHA for f40b13a
ewext/src/lib.rs
@@ -35,7 +35,7 @@ thread_local! {
35
});
36
}
37
38
-static NETMANAGER: LazyLock<Mutex<Option<NetManager>>> = LazyLock::new(|| Default::default());
+static NETMANAGER: LazyLock<Mutex<Option<NetManager>>> = LazyLock::new(Default::default);
39
40
#[derive(Default)]
41
struct ExtState {
@@ -122,6 +122,7 @@ fn netmanager_connect(_lua: LuaState) -> eyre::Result<Vec<RawString>> {
122
123
let mut kvs = Vec::new();
124
125
+ #[expect(clippy::while_let_loop)] // Will probably get more variants in the future
126
loop {
127
match netman
128
.recv()?
0 commit comments