mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-16 07:36:38 +00:00
Fix compilation
And detect more invalid tokens Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
parent
e1d9425cba
commit
916b87c649
1 changed files with 2 additions and 2 deletions
|
@ -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())));
|
opts.github_token = Some(GithubToken(Zeroizing::new(github_token.into())));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
match opts.github_token.as_deref() {
|
match opts.github_token.as_ref() {
|
||||||
Some(token) if token.is_empty() => opts.github_token = None,
|
Some(token) if token.len() < 10 => opts.github_token = None,
|
||||||
_ => (),
|
_ => (),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue