diff options
author | Matthias Beyer <matthias.beyer@ifm.com> | 2022-07-06 11:56:28 +0200 |
---|---|---|
committer | Matthias Beyer <matthias.beyer@ifm.com> | 2022-07-06 12:01:31 +0200 |
commit | 426fbd1b390f5894cc53721519fdb1d8f8d6c56a (patch) | |
tree | bc9b4ad69c7ec925e8d7025334874a45c7c9fa1a | |
parent | 75c7b6c0f03f1c7acaae4c43dfec16ecbb6dc4c4 (diff) |
Replace Into<> implementation with From<> impl
Fixes lint: from_over_into
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
-rw-r--r-- | crates/core/tedge_lib/src/config/port.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/core/tedge_lib/src/config/port.rs b/crates/core/tedge_lib/src/config/port.rs index edffd2f9..b80e87ac 100644 --- a/crates/core/tedge_lib/src/config/port.rs +++ b/crates/core/tedge_lib/src/config/port.rs @@ -7,9 +7,9 @@ #[serde(transparent)] pub struct Port(u16); -impl Into<u16> for Port { - fn into(self) -> u16 { - self.0 +impl From<Port> for u16 { + fn from(p: Port) -> Self { + p.0 } } |