From 468a86c92ef132cc44d4b6daf8e2be180f35c0a2 Mon Sep 17 00:00:00 2001 From: Paolo Barbolini Date: Fri, 26 Mar 2021 10:17:39 +0100 Subject: [PATCH] clippy: fix clippy::from_over_into warning (#107) --- src/models/crates.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/models/crates.rs b/src/models/crates.rs index 0d32dcc..96a647f 100644 --- a/src/models/crates.rs +++ b/src/models/crates.rs @@ -24,9 +24,9 @@ impl CratePath { #[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct CrateName(String); -impl Into for CrateName { - fn into(self) -> String { - self.0 +impl From for String { + fn from(crate_name: CrateName) -> String { + crate_name.0 } }