From 88a708c006dfbe2b821afb281143f09c8204bf0f Mon Sep 17 00:00:00 2001 From: qjerome Date: Fri, 17 Jan 2025 12:17:56 +0100 Subject: [PATCH] =?UTF-8?q?chore:=C2=A0upgrade=20userland=20code=20toolcha?= =?UTF-8?q?in=20-=20also=20fix=20new=20clippy=20warnings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kunai-common/src/path/user.rs | 2 +- rust-toolchain.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kunai-common/src/path/user.rs b/kunai-common/src/path/user.rs index 3b052049..d36d4128 100644 --- a/kunai-common/src/path/user.rs +++ b/kunai-common/src/path/user.rs @@ -44,7 +44,7 @@ impl TryFrom<&path::PathBuf> for Path { fn try_from(value: &path::PathBuf) -> Result { let mut out = Self::default(); - let path_buf_len = value.to_string_lossy().as_bytes().len(); + let path_buf_len = value.to_string_lossy().len(); if path_buf_len > out.buffer.len() { return Err(Error::FilePathTooLong); diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 1046e7e9..8cfeb416 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,5 +1,5 @@ [toolchain] -channel = "1.81" +channel = "1.84" targets = ["x86_64-unknown-linux-gnu", "aarch64-unknown-linux-gnu"] # to have the necessary for code analysis