diff --git a/Cargo.lock b/Cargo.lock index bcc5056bd..079f71f35 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1011,7 +1011,7 @@ dependencies = [ "color-eyre", "confy 0.5.1", "convert_case 0.6.0", - "derive_more 0.99.18", + "derive_more 1.0.0", "dusk-plonk", "futures", "hex", diff --git a/core/Cargo.toml b/core/Cargo.toml index fd0d30d21..5ed905948 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -22,7 +22,7 @@ codec = { package = "parity-scale-codec", version = "3", default-features = fals color-eyre = { workspace = true } confy = { workspace = true } convert_case = "0.6.0" -derive_more = { version = "0.99.17", features = ["from"] } +derive_more = { version = "1", features = ["from"] } futures = { workspace = true } hex = { workspace = true } hyper = { version = "0.14.23", features = ["full", "http1"] } diff --git a/core/src/types.rs b/core/src/types.rs index 96dcca6ef..e3a89ed34 100644 --- a/core/src/types.rs +++ b/core/src/types.rs @@ -19,7 +19,6 @@ use base64::{engine::general_purpose, DecodeError, Engine}; use codec::{Decode, Encode, Input}; use color_eyre::{eyre::eyre, Report, Result}; use convert_case::{Case, Casing}; -use derive_more::Display; use libp2p::kad::Mode as KadMode; use libp2p::{Multiaddr, PeerId}; use serde::{de::Error, Deserialize, Serialize}; @@ -616,8 +615,7 @@ impl From for String { } } -#[derive(Clone, Debug, Display, Serialize, Deserialize)] -#[display(fmt = "{}", _0)] +#[derive(Clone, Debug, derive_more::Display, Serialize, Deserialize)] #[serde(try_from = "String")] pub struct ProjectName(pub String);