mirror of
https://github.com/notohh/rustlings.git
synced 2024-10-30 16:59:12 -04:00
Merge pull request #1686 from dieterplex/mrv4clap
fix(installation): bump MinRustVersion to 1.70
This commit is contained in:
commit
d7e1064b13
2 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@ function vercomp($v1, $v2) {
|
|||
}
|
||||
|
||||
$rustVersion = $(rustc --version).Split(" ")[1]
|
||||
$minRustVersion = "1.56"
|
||||
$minRustVersion = "1.70"
|
||||
if ((vercomp $rustVersion $minRustVersion) -eq 2) {
|
||||
Write-Host "WARNING: Rust version is too old: $rustVersion - needs at least $minRustVersion"
|
||||
Write-Host "Please update Rust with 'rustup update'"
|
||||
|
|
|
@ -124,7 +124,7 @@ function vercomp() {
|
|||
}
|
||||
|
||||
RustVersion=$(rustc --version | cut -d " " -f 2)
|
||||
MinRustVersion=1.58
|
||||
MinRustVersion=1.70
|
||||
vercomp "$RustVersion" $MinRustVersion || ec=$?
|
||||
if [ ${ec:-0} -eq 2 ]
|
||||
then
|
||||
|
|
Loading…
Reference in a new issue