Skip to content

Commit 9d1a984

Browse files
committed
Remove 'static from &str
Clippy emits: warning: constants have by default a `'static` lifetime As suggested remove the 'static.
1 parent b9df24c commit 9d1a984

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/descriptor/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -964,8 +964,7 @@ mod tests {
964964
use crate::{hex_script, Descriptor, DummyKey, Error, Miniscript, Satisfier};
965965

966966
type StdDescriptor = Descriptor<PublicKey>;
967-
const TEST_PK: &'static str =
968-
"pk(020000000000000000000000000000000000000000000000000000000000000002)";
967+
const TEST_PK: &str = "pk(020000000000000000000000000000000000000000000000000000000000000002)";
969968

970969
fn roundtrip_descriptor(s: &str) {
971970
let desc = Descriptor::<DummyKey>::from_str(&s).unwrap();

0 commit comments

Comments
 (0)