Skip to content

Commit

Permalink
Update derive_more to version 1.
Browse files Browse the repository at this point in the history
  • Loading branch information
aterentic-ethernal committed Nov 25, 2024
1 parent 6d471bf commit 7edf50a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down
4 changes: 1 addition & 3 deletions core/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down Expand Up @@ -616,8 +615,7 @@ impl From<Base64> 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);

Expand Down

0 comments on commit 7edf50a

Please sign in to comment.