Skip to content

Commit 18e96f5

Browse files
committed
chore(deps): Bump derive_more from 0.99 to 1.0
1 parent 35a8a27 commit 18e96f5

File tree

6 files changed

+33
-41
lines changed

6 files changed

+33
-41
lines changed

Cargo.lock

Lines changed: 26 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.70.0
1+
1.75.0

src/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ cli = ["clap/derive", "clap-utilities"]
5252
cli-completions = ["cli"]
5353

5454
[dependencies]
55-
derive_more = "^0.99.17"
55+
derive_more = { version = "1.0", features = ["as_ref", "deref", "deref_mut", "display", "error", "from", "index", "into", "try_into"] }
5656
pipe-trait = "^0.4.0"
5757
serde_yaml = "^0.9.21"
5858
text-block-macros = "^0.1.1"

src/build/error.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
use derive_more::{Display, Error};
2-
use std::fmt::{self, Debug, Display, Formatter};
2+
use std::fmt::{self, Debug, Formatter};
33

44
/// Error caused by [`Build::build`](crate::Build::build).
55
#[derive(Debug, Display, Error)]
6-
#[display(fmt = "{operation} {path:?}: {error}")]
7-
#[display(bound = "Path: Debug, Error: Display")]
6+
#[display("{operation} {path:?}: {error}")]
7+
#[display(bound(Path: Debug, Error: Display))]
88
pub struct BuildError<Path, Error> {
99
/// Operation that caused the error.
1010
pub operation: FailedOperation,
@@ -34,7 +34,7 @@ impl FailedOperation {
3434
}
3535
}
3636

37-
impl Display for FailedOperation {
37+
impl fmt::Display for FailedOperation {
3838
fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), fmt::Error> {
3939
write!(formatter, "{}", self.name())
4040
}

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ mod node;
6464
mod tree;
6565

6666
pub use build::*;
67-
pub use macros::*;
6867
pub use node::*;
6968
pub use tree::*;
7069

test/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ maplit = "^1.0.2"
1919
text-block-macros = "^0.1.1"
2020
serde_yaml = "^0.9.21"
2121
pretty_assertions = "^1.3.0"
22-
derive_more = "^0.99.17"
22+
derive_more = { version = "1.0", features = ["as_ref", "deref"] }
2323
rand = "^0.8.5"
2424
command-extra = "^1.0.0"
2525
serde = { version = "^1.0.159", features = ["derive"] }

0 commit comments

Comments
 (0)