clippy: fix clippy::from_over_into warning (#107)

This commit is contained in:
Paolo Barbolini 2021-03-26 10:17:39 +01:00 committed by GitHub
parent a6b43e4e6d
commit 468a86c92e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,9 +24,9 @@ impl CratePath {
#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)] #[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct CrateName(String); pub struct CrateName(String);
impl Into<String> for CrateName { impl From<CrateName> for String {
fn into(self) -> String { fn from(crate_name: CrateName) -> String {
self.0 crate_name.0
} }
} }