Skip to content

Commit 35e6938

Browse files
committed
improv
1 parent c0ae1a1 commit 35e6938

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/main.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ struct Opts {
1515
#[command(subcommand)]
1616
cmd: Cmd,
1717

18-
/// List of chaned files to target
18+
/// List of chaned files to target.
1919
#[clap(global = true)]
2020
files: Vec<PathBuf>,
2121

@@ -26,10 +26,12 @@ struct Opts {
2626
/// Configuration for cargo toolchain versioning
2727
#[derive(Debug, Args)]
2828
struct CargoOpts {
29-
/// Minimum rustc version, checked before running
29+
/// Minimum rustc version, checked before running.
30+
// Alternatively, you can set pre-commit `default_language_version.rust`, and a managed rust
31+
// environment will be created and used at the exact version specified.
3032
#[clap(long, global = true)]
3133
rust_version: Option<Version>,
32-
/// If `rust_version` is specified and an update is needed, automatically run `rustup update`
34+
/// If `rust_version` is specified and an update is needed, automatically run `rustup update`.
3335
#[clap(long, global = true)]
3436
auto_update: bool,
3537
/// Override the error message printed if `cargo` or the command executable is not found.
@@ -150,7 +152,6 @@ impl Cmd {
150152
fn check_toolchain(opts: &CargoOpts) -> Result<()> {
151153
match toolchain_version()? {
152154
Some(ver) => {
153-
eprintln!("msrv={:?} found_rv={} PATH={:?}", &opts.rust_version, ver, std::env::var("PATH"));
154155
if let Some(msrv) = &opts.rust_version {
155156
if &ver < msrv {
156157
if opts.auto_update {

0 commit comments

Comments
 (0)