fix(rustup): update FromStr
Signed-off-by: Peter Atashian <retep998@gmail.com>
This commit is contained in:
		
				
					committed by
					
						 Sean McArthur
						Sean McArthur
					
				
			
			
				
	
			
			
			
						parent
						
							c983ebf3ce
						
					
				
				
					commit
					742081c8cf
				
			| @@ -34,8 +34,9 @@ impl HeaderFormat for IfModifiedSince { | ||||
| } | ||||
|  | ||||
| impl FromStr for IfModifiedSince { | ||||
|     fn from_str(s: &str) -> Option<IfModifiedSince> { | ||||
|         tm_from_str(s).map(IfModifiedSince) | ||||
|     type Err = (); | ||||
|     fn from_str(s: &str) -> Result<IfModifiedSince, ()> { | ||||
|         tm_from_str(s).map(IfModifiedSince).ok_or(()) | ||||
|     } | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user