Skip to content

Commit d4fddbe

Browse files
Update Rust to 1.97.1
1 parent f372361 commit d4fddbe

3 files changed

Lines changed: 5 additions & 14 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "roc_host"
33
version = "0.21.0-rc4"
44
authors = ["The Roc Contributors"]
55
edition = "2021"
6-
rust-version = "1.83"
6+
rust-version = "1.97"
77
license = "UPL-1.0"
88
repository = "https://github.com/roc-lang/basic-cli"
99

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# a) Find the latest nightly release that matches RUST_VERSION here: https://github.com/oxalica/rust-overlay/tree/master/manifests/nightly/2024
66
# b) update `channel = "nightly-OLD_DATE"` below
77

8-
channel = "1.83.0" # check ^^^ when changing this
8+
channel = "1.97.1" # check ^^^ when changing this
99
components = ["rust-analyzer"]
1010
#
1111
# channel = "nightly-2024-04-28" # 1.79.0 nightly to be able to use unstable features

src/lib.rs

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1568,10 +1568,7 @@ fn file_permission_bit(
15681568
Ok(metadata.permissions().mode() & bit != 0)
15691569
}
15701570

1571-
fn file_is_executable(
1572-
path: UnixBytesOrUtf8OrWindowsU16s,
1573-
roc_host: &RocHost,
1574-
) -> io::Result<bool> {
1571+
fn file_is_executable(path: UnixBytesOrUtf8OrWindowsU16s, roc_host: &RocHost) -> io::Result<bool> {
15751572
#[cfg(unix)]
15761573
{
15771574
file_permission_bit(path, roc_host, 0o111)
@@ -1600,10 +1597,7 @@ fn file_is_executable(
16001597
}
16011598
}
16021599

1603-
fn file_is_readable(
1604-
path: UnixBytesOrUtf8OrWindowsU16s,
1605-
roc_host: &RocHost,
1606-
) -> io::Result<bool> {
1600+
fn file_is_readable(path: UnixBytesOrUtf8OrWindowsU16s, roc_host: &RocHost) -> io::Result<bool> {
16071601
#[cfg(unix)]
16081602
{
16091603
file_permission_bit(path, roc_host, 0o400)
@@ -1624,10 +1618,7 @@ fn file_is_readable(
16241618
}
16251619
}
16261620

1627-
fn file_is_writable(
1628-
path: UnixBytesOrUtf8OrWindowsU16s,
1629-
roc_host: &RocHost,
1630-
) -> io::Result<bool> {
1621+
fn file_is_writable(path: UnixBytesOrUtf8OrWindowsU16s, roc_host: &RocHost) -> io::Result<bool> {
16311622
#[cfg(unix)]
16321623
{
16331624
file_permission_bit(path, roc_host, 0o200)

0 commit comments

Comments
 (0)