mirror of
				https://github.com/astral-sh/ruff.git
				synced 2025-11-04 05:34:54 +00:00 
			
		
		
		
	Switch to Rust 2024 edition (#18129)
This commit is contained in:
		
							parent
							
								
									e67b35743a
								
							
						
					
					
						commit
						9ae698fe30
					
				
					 1082 changed files with 4211 additions and 3300 deletions
				
			
		| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
use ruff_index::{newtype_index, IndexVec};
 | 
			
		||||
use ruff_index::{IndexVec, newtype_index};
 | 
			
		||||
use ruff_python_ast::Stmt;
 | 
			
		||||
use ruff_text_size::{Ranged, TextRange};
 | 
			
		||||
use smallvec::{smallvec, SmallVec};
 | 
			
		||||
use smallvec::{SmallVec, smallvec};
 | 
			
		||||
 | 
			
		||||
/// Returns the control flow graph associated to an array of statements
 | 
			
		||||
pub fn build_cfg(stmts: &[Stmt]) -> ControlFlowGraph<'_> {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -208,7 +208,7 @@ impl<'stmt> MermaidGraph<'stmt> for CFGWithSource<'stmt> {
 | 
			
		|||
                return MermaidNode {
 | 
			
		||||
                    content: "EXIT".to_string(),
 | 
			
		||||
                    shape: MermaidNodeShape::DoubleCircle,
 | 
			
		||||
                }
 | 
			
		||||
                };
 | 
			
		||||
            }
 | 
			
		||||
        };
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue