diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index dd86b74..8c0bab5 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -11,7 +11,7 @@ jobs: uses: actions-rs/toolchain@v1 with: # TODO: refactor toolchain version - toolchain: 1.53.0 + toolchain: 1.54.0 components: clippy, rustfmt default: true - name: Install dependencies @@ -49,7 +49,7 @@ jobs: - name: Install Rust uses: actions-rs/toolchain@v1 with: - toolchain: 1.53.0 + toolchain: 1.54.0 components: clippy, rustfmt default: true - name: Build binary @@ -83,7 +83,7 @@ jobs: - name: Install Rust uses: actions-rs/toolchain@v1 with: - toolchain: 1.53.0 + toolchain: 1.54.0 components: clippy, rustfmt default: true - name: Build binary @@ -128,7 +128,7 @@ jobs: uses: actions-rs/toolchain@v1 with: # TODO: refactor toolchain version - toolchain: 1.53.0 + toolchain: 1.54.0 components: clippy, rustfmt default: true - name: Install wasm-pack diff --git a/README.md b/README.md index 7e04262..1152f18 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ from [GitHub Actions](https://actions-badge.atrox.dev/iceiix/stevenarella/goto?r ## Dependencies -Requires Rust stable version 1.53.0 or newer. +Requires Rust stable version 1.54.0 or newer. **Debian/Ubuntu** diff --git a/src/main.rs b/src/main.rs index 1a0d410..ce2a175 100644 --- a/src/main.rs +++ b/src/main.rs @@ -92,7 +92,7 @@ pub struct Game { impl Game { pub fn connect_to(&mut self, address: &str) { let (protocol_version, forge_mods, fml_network_version) = - match protocol::Conn::new(&address, self.default_protocol_version) + match protocol::Conn::new(address, self.default_protocol_version) .and_then(|conn| conn.do_status()) { Ok(res) => { @@ -509,6 +509,7 @@ fn main2() { glutin_window.resize(physical_size); } + #[allow(clippy::needless_borrow)] // needless for native, not for web if !handle_window_event(&winit_window, &mut game, &mut ui_container, event) { return; } @@ -516,7 +517,7 @@ fn main2() { #[cfg(not(target_arch = "wasm32"))] { tick_all( - &winit_window, + winit_window, &mut game, &mut ui_container, &mut last_frame, diff --git a/src/screen/server_list.rs b/src/screen/server_list.rs index f18efb1..acdb0e7 100644 --- a/src/screen/server_list.rs +++ b/src/screen/server_list.rs @@ -518,7 +518,7 @@ impl super::Screen for ServerList { } else { &res.protocol_name }; - let mut txt = TextComponent::new(&st); + let mut txt = TextComponent::new(st); txt.modifier.color = Some(format::Color::Yellow); let mut msg = Component::Text(txt); format::convert_legacy(&mut msg); diff --git a/src/server/mod.rs b/src/server/mod.rs index e0b2027..b26dcef 100644 --- a/src/server/mod.rs +++ b/src/server/mod.rs @@ -1823,8 +1823,7 @@ impl Server { continue; } }; - let skin_blob: serde_json::Value = match serde_json::from_slice(&skin_blob) - { + let skin_blob: serde_json::Value = match serde_json::from_slice(skin_blob) { Ok(val) => val, Err(err) => { error!("Failed to parse skin blob, {:?}", err); diff --git a/src/ui/mod.rs b/src/ui/mod.rs index 5873919..15b4b09 100644 --- a/src/ui/mod.rs +++ b/src/ui/mod.rs @@ -1643,7 +1643,7 @@ impl TextBox { fn transform_input(&self) -> String { if self.password { - ::std::iter::repeat('*').take(self.input.len()).collect() + "*".repeat(self.input.len()) } else { self.input.clone() }