Skip to content

Commit

Permalink
Update crates/stackable-operator/src/commons/networking.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Techassi <[email protected]>
  • Loading branch information
nightkr and Techassi authored Aug 30, 2024
1 parent 41fd8eb commit b0207a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/stackable-operator/src/commons/networking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,19 @@ impl TryFrom<String> for Hostname {
Ok(Hostname(value))
}
}

impl From<Hostname> for String {
fn from(value: Hostname) -> Self {
value.0
}
}

impl Display for Hostname {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.write_str(&self.0)
}
}

impl Deref for Hostname {
type Target = str;

Expand Down

0 comments on commit b0207a3

Please sign in to comment.