diff --git a/crates/bin/src/args.rs b/crates/bin/src/args.rs index d8ea4e96..5d62b52e 100644 --- a/crates/bin/src/args.rs +++ b/crates/bin/src/args.rs @@ -609,8 +609,8 @@ You cannot use --{option} and specify multiple packages at the same time. Do one opts.github_token = Some(GithubToken(Zeroizing::new(github_token.into()))); } } - match opts.github_token.as_deref() { - Some(token) if token.is_empty() => opts.github_token = None, + match opts.github_token.as_ref() { + Some(token) if token.len() < 10 => opts.github_token = None, _ => (), }