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 b0207a3 commit 1874aca
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 @@ -54,16 +54,19 @@ impl TryFrom<String> for KerberosRealmName {
Ok(KerberosRealmName(value))
}
}

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

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

impl Deref for KerberosRealmName {
type Target = str;

Expand Down

0 comments on commit 1874aca

Please sign in to comment.