mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-30 10:06:12 +00:00
Implement From<..> instead of Into<..>
This commit is contained in:
1 parent
9702f5256c
commit
a27814db8e
1 file changed
+6
-6
@@ -336,14 +336,14 @@ impl<'a> Input<'a> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> Into<Input<'a>> for input::Input<'a> {
|
impl<'a> From<input::Input<'a>> for Input<'a> {
|
||||||
fn into(self) -> Input<'a> {
|
fn from(input: input::Input<'a>) -> Self {
|
||||||
Input { input: self }
|
Self { input }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> Into<input::Input<'a>> for Input<'a> {
|
impl<'a> From<Input<'a>> for input::Input<'a> {
|
||||||
fn into(self) -> input::Input<'a> {
|
fn from(Input { input }: Input<'a>) -> Self {
|
||||||
self.input
|
input
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user