Skip to content

Commit 8b85649

Browse files
committed
Remove MSRV local variable
We only use the `MSRV` local variable once, we can inline the pinning block with no loss of clarity.
1 parent 2edc456 commit 8b85649

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

contrib/test.sh

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,15 @@ cargo update -p serde_derive --precise 1.0.142
1010
cargo --version
1111
rustc --version
1212

13-
# Work out if we are using a nightly toolchain.
14-
MSRV=false
13+
# Pin dependencies required to build with Rust 1.41.1
1514
if cargo --version | grep "1\.41\.0"; then
16-
MSRV=true
17-
fi
18-
19-
if cargo --version | grep "1\.47\.0"; then
15+
cargo update -p url --precise 2.2.2
16+
cargo update -p form_urlencoded --precise 1.0.1
2017
cargo update -p once_cell --precise 1.13.1
2118
fi
2219

23-
# form_urlencoded 1.1.0 breaks MSRV.
24-
if [ "$MSRV" = true ]; then
25-
cargo update -p url --precise 2.2.2
26-
cargo update -p form_urlencoded --precise 1.0.1
20+
# Pin dependencies required to build with Rust 1.47.0
21+
if cargo --version | grep "1\.47\.0"; then
2722
cargo update -p once_cell --precise 1.13.1
2823
fi
2924

0 commit comments

Comments
 (0)