mirror of
				https://github.com/sharkdp/bat.git
				synced 2025-11-04 00:51:56 +00:00 
			
		
		
		
	Implement From<..> instead of Into<..>
				
					
				
			This commit is contained in:
		
				
					committed by
					
						
						David Peter
					
				
			
			
				
	
			
			
			
						parent
						
							9702f5256c
						
					
				
				
					commit
					a27814db8e
				
			@@ -336,14 +336,14 @@ impl<'a> Input<'a> {
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
impl<'a> Into<Input<'a>> for input::Input<'a> {
 | 
			
		||||
    fn into(self) -> Input<'a> {
 | 
			
		||||
        Input { input: self }
 | 
			
		||||
impl<'a> From<input::Input<'a>> for Input<'a> {
 | 
			
		||||
    fn from(input: input::Input<'a>) -> Self {
 | 
			
		||||
        Self { input }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
impl<'a> Into<input::Input<'a>> for Input<'a> {
 | 
			
		||||
    fn into(self) -> input::Input<'a> {
 | 
			
		||||
        self.input
 | 
			
		||||
impl<'a> From<Input<'a>> for input::Input<'a> {
 | 
			
		||||
    fn from(Input { input }: Input<'a>) -> Self {
 | 
			
		||||
        input
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user