Skip to content

Commit 846b509

Browse files
committed
chore: update derive_more from 0.99 to 2.1
1 parent 16c0dd0 commit 846b509

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ tokio = { version = "1.0", features = [ "full" ] }
4545
anyhow = "1.0"
4646
chrono = { version = "0.4", features = [ "serde" ] }
4747
clap = { version = "4.0", features = [ "derive" ] }
48-
derive_more = "0.99"
48+
derive_more = { version = "2.1", features = [ "display", "from" ] }
4949
figment = { version = "0.10", features = [ "json" ] }
5050
parking_lot = "0.12"
5151
reqwest = "0.12"

src/infrastructure/templating/ansible/template/wrappers/inventory/context/ansible_host.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub enum AnsibleHostError {
2424
///
2525
/// For this implementation, we only support IP addresses (IPv4 and IPv6) for simplicity.
2626
#[derive(Debug, Clone, PartialEq, Eq, Display, From, Serialize)]
27-
#[display(fmt = "{ip}")]
27+
#[display("{ip}")]
2828
#[serde(transparent)]
2929
pub struct AnsibleHost {
3030
ip: IpAddr,

src/infrastructure/templating/ansible/template/wrappers/inventory/context/ansible_port.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub enum AnsiblePortError {
2020
/// Ansible's `ansible_port` represents the SSH port to connect to.
2121
/// Valid port numbers are in the range 1-65535.
2222
#[derive(Debug, Clone, Copy, PartialEq, Eq, Display, From, Serialize)]
23-
#[display(fmt = "{port}")]
23+
#[display("{port}")]
2424
#[serde(transparent)]
2525
pub struct AnsiblePort {
2626
port: u16,

src/infrastructure/templating/ansible/template/wrappers/inventory/context/ssh_private_key_file.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub enum SshPrivateKeyFileError {
1717

1818
/// Wrapper type for SSH private key file path using the newtype pattern
1919
#[derive(Debug, Clone, PartialEq, Eq, Display, From, Serialize)]
20-
#[display(fmt = "{}", "path.display()")]
20+
#[display("{}", path.display())]
2121
#[serde(transparent)]
2222
pub struct SshPrivateKeyFile {
2323
path: PathBuf,

0 commit comments

Comments
 (0)