Skip to content

Commit 53de6f2

Browse files
committed
update MSRV to 1.48.0 from 1.41.1
1 parent 3542f91 commit 53de6f2

File tree

6 files changed

+9
-16
lines changed

6 files changed

+9
-16
lines changed

.github/workflows/rust.yml

+1-7
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,8 @@ jobs:
1717
env:
1818
DO_INTEGRATION: true
1919
- rust: beta
20-
env:
21-
DUMMY: true
2220
- rust: nightly
23-
env:
24-
DUMMY: true
25-
- rust: 1.41.1
26-
env:
27-
PIN_VERSIONS: true
21+
- rust: 1.48.0
2822
steps:
2923
- name: Install test dependencies
3024
run: sudo apt-get install -y binutils-dev libunwind8-dev

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ structures and network messages related to Elements
1010

1111
## Minimum Supported Rust Version (MSRV)
1212

13-
This library should always compile with any combination of features on **Rust 1.41.1**.
13+
This library should always compile with any combination of features on **Rust 1.48.0**.

clippy.toml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
msrv = "1.48.0"

contrib/test.sh

+1-3
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,9 @@ then
99
fi
1010

1111
# Pin dependencies as required if we are using MSRV toolchain.
12-
if cargo --version | grep "1\.41"; then
12+
if cargo --version | grep "1\.48"; then
1313
# 1.0.157 uses syn 2.0 which requires edition 2018
1414
cargo update -p serde --precise 1.0.156
15-
# 1.0.108 uses `matches!` macro so does not work with Rust 1.41.1, bad `syn` no biscuit.
16-
cargo update -p syn --precise 1.0.107
1715
fi
1816

1917
# Test without any features first

elementsd-tests/src/taproot.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -283,17 +283,17 @@ fn taproot_tests() {
283283
SchnorrSigHashType::AllPlusAnyoneCanPay,
284284
];
285285

286-
for conf_prevout in [true, false] {
286+
for &conf_prevout in &[true, false] {
287287
// whether the input is blinded
288-
for blind in [true, false] {
288+
for &blind in &[true, false] {
289289
// blind the current tx
290290
if !blind && conf_prevout {
291291
// trying to spend a confidential txout to all explicit transactions
292292
// This is not possible to do because we need to balance the blinding factors
293293
continue;
294294
}
295-
for script_spend in [true, false] {
296-
for sighash_ty in sighash_tys {
295+
for &script_spend in &[true, false] {
296+
for &sighash_ty in &sighash_tys {
297297
taproot_spend_test(
298298
&elementsd,
299299
&secp,

src/pset/serialize.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ impl Serialize for (XOnlyPublicKey, TapLeafHash) {
324324
let ser_pk = self.0.serialize();
325325
let mut buf = Vec::with_capacity(ser_pk.len() + TapLeafHash::LEN);
326326
buf.extend(&ser_pk);
327-
buf.extend(self.1.to_byte_array());
327+
buf.extend(&self.1.to_byte_array());
328328
buf
329329
}
330330
}

0 commit comments

Comments
 (0)