mirror of
https://github.com/deps-rs/deps.rs.git
synced 2024-11-28 12:46:31 +00:00
clippy: fix clippy::from_over_into warning (#107)
This commit is contained in:
parent
a6b43e4e6d
commit
468a86c92e
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue