From 05d4567a559b299da340d4025297dba4f9af0221 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Wed, 5 Jun 2024 14:29:52 -0700 Subject: [PATCH] Update Cargo.toml to set minimum Rust to 1.66 (#392) --- Cargo.toml | 2 +- src/cli.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3358515..62d852d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ license = "MIT" keywords = ["Python"] categories = ["command-line-utilities"] edition = "2021" -rust-version = "1.58" +rust-version = "1.66" [badges] maintenance = { status = "actively-developed" } diff --git a/src/cli.rs b/src/cli.rs index b4c0baf..8b49930 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -232,7 +232,7 @@ fn venv_path_search() -> Option { let printable_venv_path = venv_path.display(); log::info!("Checking {printable_venv_path}"); // bool::then_some() makes more sense, but still experimental. - venv_path.is_file().then(|| venv_path) + venv_path.is_file().then_some(venv_path) }) } }