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)]
pub struct CrateName(String);
impl Into<String> for CrateName {
fn into(self) -> String {
self.0
impl From<CrateName> for String {
fn from(crate_name: CrateName) -> String {
crate_name.0
}
}