From 0e65ae8fa4c8eb94c97c95b567d0e623477aa070 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 29 Dec 2024 05:14:23 +0100 Subject: [PATCH 1/3] flake.lock: Update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Flake lock file updates: • Updated input 'advisory-db': 'github:rustsec/advisory-db/b02b7ca7c98eee7fe26ac18277040c3fc814b52d?narHash=sha256-F4iNNs84rdqN2ZDCKtZrE/PUIfUe6YSZM/O2sckeQr4%3D' (2024-12-23) → 'github:rustsec/advisory-db/3c6d3186ab06737d1defd2b5ae556d0ecd161603?narHash=sha256-Bcf7iBwrfjYPO7roKCz%2B3yPAFqgNqfKCp51sLKETjxU%3D' (2024-12-28) • Updated input 'fenix': 'github:nix-community/fenix/30616281e9bfe0883acb3369f2b89aad6850706f?narHash=sha256-yl/iko/0pvRN3PF6Z4FjQeb6AuGiavMENEisQWJ78h0%3D' (2024-12-23) → 'github:nix-community/fenix/3743208cafd7bc3c150f0c77c25ef7430e9c0de2?narHash=sha256-a5EMHpDAxLShxBKUdDVmqZMlfiuOtOUzet2xT/E/RiM%3D' (2024-12-28) • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/93ff48c9be84a76319dac293733df09bbbe3f25c?narHash=sha256-Q%2BCB1ajsJg4Z9HGHTBAGY1q18KpnnkmF/eCTLUY6FQ0%3D' (2024-12-22) → 'github:NixOS/nixpkgs/7cc0bff31a3a705d3ac4fdceb030a17239412210?narHash=sha256-7QEFnKkzD13SPxs%2BUFR5bUFN2fRw%2BGlL0am72ZjNre4%3D' (2024-12-27) --- flake.lock | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/flake.lock b/flake.lock index d57e3a3..d4f72a6 100644 --- a/flake.lock +++ b/flake.lock @@ -3,11 +3,11 @@ "advisory-db": { "flake": false, "locked": { - "lastModified": 1734961910, - "narHash": "sha256-F4iNNs84rdqN2ZDCKtZrE/PUIfUe6YSZM/O2sckeQr4=", + "lastModified": 1735408444, + "narHash": "sha256-Bcf7iBwrfjYPO7roKCz+3yPAFqgNqfKCp51sLKETjxU=", "owner": "rustsec", "repo": "advisory-db", - "rev": "b02b7ca7c98eee7fe26ac18277040c3fc814b52d", + "rev": "3c6d3186ab06737d1defd2b5ae556d0ecd161603", "type": "github" }, "original": { @@ -70,11 +70,11 @@ "rust-analyzer-src": [] }, "locked": { - "lastModified": 1734935689, - "narHash": "sha256-yl/iko/0pvRN3PF6Z4FjQeb6AuGiavMENEisQWJ78h0=", + "lastModified": 1735367591, + "narHash": "sha256-a5EMHpDAxLShxBKUdDVmqZMlfiuOtOUzet2xT/E/RiM=", "owner": "nix-community", "repo": "fenix", - "rev": "30616281e9bfe0883acb3369f2b89aad6850706f", + "rev": "3743208cafd7bc3c150f0c77c25ef7430e9c0de2", "type": "github" }, "original": { @@ -145,11 +145,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1734856068, - "narHash": "sha256-Q+CB1ajsJg4Z9HGHTBAGY1q18KpnnkmF/eCTLUY6FQ0=", + "lastModified": 1735268880, + "narHash": "sha256-7QEFnKkzD13SPxs+UFR5bUFN2fRw+GlL0am72ZjNre4=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "93ff48c9be84a76319dac293733df09bbbe3f25c", + "rev": "7cc0bff31a3a705d3ac4fdceb030a17239412210", "type": "github" }, "original": { From 4f1a28acf8144c8a5df914303f968b16b1e216d1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 29 Dec 2024 05:14:25 +0100 Subject: [PATCH 2/3] [create-pull-request] automated change --- Cargo.lock | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 90b413a..b08d4fb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -373,9 +373,9 @@ checksum = "37b2a672a2cb129a2e41c10b1224bb368f9f37a2b16b612598138befd7b37eb5" [[package]] name = "cc" -version = "1.2.5" +version = "1.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c31a0499c1dc64f458ad13872de75c0eb7e3fdb0e67964610c914b034fc5956e" +checksum = "8d6dbb628b8f8555f86d0323c2eb39e3ec81901f4b83e091db8a6a76d316a333" dependencies = [ "jobserver", "libc", @@ -1517,9 +1517,9 @@ checksum = "a993555f31e5a609f617c12db6250dedcac1b0a85076912c436e6fc9b2c8e6a3" [[package]] name = "quote" -version = "1.0.37" +version = "1.0.38" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af" +checksum = "0e4dccaaaf89514f546c693ddc140f729f958c247918a13380cccc6078391acc" dependencies = [ "proc-macro2", ] @@ -1738,9 +1738,9 @@ dependencies = [ [[package]] name = "rustversion" -version = "1.0.18" +version = "1.0.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e819f2bc632f285be6d7cd36e25940d45b2391dd6d9b939e79de557f7014248" +checksum = "f7c45b9784283f1b2e7fb61b42047c2fd678ef0960d4f6f1eba131594cc369d4" [[package]] name = "ryu" @@ -1765,18 +1765,18 @@ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" [[package]] name = "serde" -version = "1.0.216" +version = "1.0.217" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b9781016e935a97e8beecf0c933758c97a5520d32930e460142b4cd80c6338e" +checksum = "02fc4265df13d6fa1d00ecff087228cc0a2b5f3c0e87e258d8b94a156e984c70" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.216" +version = "1.0.217" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46f859dbbf73865c6627ed570e78961cd3ac92407a2d117204c49232485da55e" +checksum = "5a9bf7cf98d04a2b28aead066b7496853d4779c9cc183c440dbac457641e19a0" dependencies = [ "proc-macro2", "quote", @@ -1920,9 +1920,9 @@ checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" [[package]] name = "syn" -version = "2.0.91" +version = "2.0.93" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d53cbcb5a243bd33b7858b1d7f4aca2153490815872d86d955d6ea29f743c035" +checksum = "9c786062daee0d6db1132800e623df74274a0a87322d8e183338e01b3d98d058" dependencies = [ "proc-macro2", "quote", @@ -2304,9 +2304,9 @@ checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825" [[package]] name = "unicase" -version = "2.8.0" +version = "2.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e51b68083f157f853b6379db119d1c1be0e6e4dec98101079dec41f6f5cf6df" +checksum = "75b844d17643ee918803943289730bec8aac480150456169e647ed0b576ba539" [[package]] name = "unicode-ident" From 5e5a29b3a1100b6c6043f28003a60fca900a9b68 Mon Sep 17 00:00:00 2001 From: Noa Aarts Date: Sun, 29 Dec 2024 11:32:25 +0100 Subject: [PATCH 3/3] add brackets to match for clippy --- src/protocols/text_protocol.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/protocols/text_protocol.rs b/src/protocols/text_protocol.rs index a63ff93..0fa7ab2 100644 --- a/src/protocols/text_protocol.rs +++ b/src/protocols/text_protocol.rs @@ -25,12 +25,12 @@ fn parse_coordinate(string: &str) -> io::Result { type HexChar = u8; fn val(c1: u8, c2: u8) -> io::Result { - Ok((match c1 { + Ok(((match c1 { b'A'..=b'F' => c1 - b'A' + 10, b'a'..=b'f' => c1 - b'a' + 10, b'0'..=b'9' => c1 - b'0', _ => return Err(Error::from(ErrorKind::InvalidInput)), - }) << 4 + }) << 4) | (match c2 { b'A'..=b'F' => c2 - b'A' + 10, b'a'..=b'f' => c2 - b'a' + 10,