mirror of
				https://github.com/astral-sh/ruff.git
				synced 2025-10-30 19:47:52 +00:00 
			
		
		
		
	Update Rust toolchain to 1.89 (#19807)
This commit is contained in:
		
							parent
							
								
									b22586fa0e
								
							
						
					
					
						commit
						7dfde3b929
					
				
					 101 changed files with 234 additions and 200 deletions
				
			
		|  | @ -789,7 +789,7 @@ where | |||
| /// assert_eq!(format_import_from(1, None), ".".to_string());
 | ||||
| /// assert_eq!(format_import_from(1, Some("foo")), ".foo".to_string());
 | ||||
| /// ```
 | ||||
| pub fn format_import_from(level: u32, module: Option<&str>) -> Cow<str> { | ||||
| pub fn format_import_from(level: u32, module: Option<&str>) -> Cow<'_, str> { | ||||
|     match (level, module) { | ||||
|         (0, Some(module)) => Cow::Borrowed(module), | ||||
|         (level, module) => { | ||||
|  | @ -1509,7 +1509,7 @@ pub fn pep_604_union(elts: &[Expr]) -> Expr { | |||
|         [rest @ .., elt] => Expr::BinOp(ast::ExprBinOp { | ||||
|             left: Box::new(pep_604_union(rest)), | ||||
|             op: Operator::BitOr, | ||||
|             right: Box::new(pep_604_union(&[elt.clone()])), | ||||
|             right: Box::new(pep_604_union(std::slice::from_ref(elt))), | ||||
|             range: TextRange::default(), | ||||
|             node_index: AtomicNodeIndex::dummy(), | ||||
|         }), | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Micha Reiser
						Micha Reiser