Add #![warn(rust_2018_idioms)], fix warning
This commit is contained in:
parent
d3e5190670
commit
a08fc01c0b
@ -76,7 +76,7 @@ impl KeyPair for Ed25519KeyPair {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl Debug for Ed25519KeyPair {
|
impl Debug for Ed25519KeyPair {
|
||||||
fn fmt(&self, formatter: &mut Formatter) -> FmtResult {
|
fn fmt(&self, formatter: &mut Formatter<'_>) -> FmtResult {
|
||||||
formatter
|
formatter
|
||||||
.debug_struct("Ed25519KeyPair")
|
.debug_struct("Ed25519KeyPair")
|
||||||
.field("public_key", &self.public_key)
|
.field("public_key", &self.public_key)
|
||||||
|
@ -41,6 +41,7 @@
|
|||||||
//! signatures and hashes on an event, use the `verify_event` function. See the documentation for
|
//! signatures and hashes on an event, use the `verify_event` function. See the documentation for
|
||||||
//! these respective functions for more details and full examples of use.
|
//! these respective functions for more details and full examples of use.
|
||||||
|
|
||||||
|
#![warn(rust_2018_idioms)]
|
||||||
#![deny(
|
#![deny(
|
||||||
missing_copy_implementations,
|
missing_copy_implementations,
|
||||||
missing_debug_implementations,
|
missing_debug_implementations,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user