chore: clippy
This commit is contained in:
parent
56f0115952
commit
a77aaa1904
3 changed files with 11 additions and 13 deletions
|
|
@ -17,11 +17,11 @@ pub struct EnvVar {
|
|||
pub value: String,
|
||||
}
|
||||
|
||||
impl Into<EnvVar> for (&str, &str) {
|
||||
fn into(self) -> EnvVar {
|
||||
impl From<(&str, &str)> for EnvVar {
|
||||
fn from(val: (&str, &str)) -> Self {
|
||||
EnvVar {
|
||||
key: self.0.to_owned(),
|
||||
value: self.1.to_owned(),
|
||||
key: val.0.to_owned(),
|
||||
value: val.1.to_owned(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue