12 lines
594 B
Plaintext
12 lines
594 B
Plaintext
Compiling easy-nostr v0.1.0 (/home/malxte/Documents/Programming/Rust/Crates/easy-nostr)
|
|
error[E0277]: the `?` operator can only be applied to values that implement `Try`
|
|
--> src/bin/testall.rs:12:16
|
|
|
|
|
12 | let nsec = keys.secret_key()?.to_bech32()?;
|
|
| ^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `&nostr_sdk::SecretKey`
|
|
|
|
|
= help: the trait `Try` is not implemented for `&nostr_sdk::SecretKey`
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|
|
error: could not compile `easy-nostr` (bin "testall") due to 1 previous error
|