fix(rustup): Remove uses of the obsolete &a[] syntax
This commit is contained in:
		
				
					committed by
					
						 Sean McArthur
						Sean McArthur
					
				
			
			
				
	
			
			
			
						parent
						
							234fcdc3a2
						
					
				
				
					commit
					039e984f68
				
			| @@ -28,7 +28,7 @@ impl Header for Host { | ||||
|             // FIXME: use rust-url to parse this | ||||
|             // https://github.com/servo/rust-url/issues/42 | ||||
|             let idx = { | ||||
|                 let slice = &s[]; | ||||
|                 let slice = &s[..]; | ||||
|                 if slice.char_at(1) == '[' { | ||||
|                     match slice.rfind(']') { | ||||
|                         Some(idx) => { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user