Implement From<..> instead of Into<..>

This commit is contained in:
Mohamed Abdelnour authored and David Peter committed 2021-05-27 12:05:07 +02:00
1 parent 9702f5256c
commit a27814db8e
1 file changed
+6 -6
+6 -6
View File
@@ -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
} }
} }