-
Notifications
You must be signed in to change notification settings - Fork 488
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed sort (use & mod) method in formatter (#6438)
- Loading branch information
1 parent
9267169
commit bfe9ba6
Showing
7 changed files
with
110 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
crates/cairo-lang-formatter/test_data/cairo_files/sorted_mod_use.cairo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
mod zeta; | ||
mod alpha; | ||
mod gamma; | ||
|
||
use std::fs; | ||
use std::io::Write; | ||
use std::path::PathBuf; | ||
use std::collections::HashMap; | ||
use std::env; | ||
|
||
mod beta; | ||
|
||
fn main() { | ||
// Example function | ||
println!("Hello, world!"); | ||
} |
16 changes: 16 additions & 0 deletions
16
crates/cairo-lang-formatter/test_data/expected_results/sorted_mod_use.cairo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
mod alpha; | ||
mod gamma; | ||
mod zeta; | ||
use std::collections::HashMap; | ||
use std::env; | ||
|
||
use std::fs; | ||
use std::io::Write; | ||
use std::path::PathBuf; | ||
|
||
mod beta; | ||
|
||
fn main() { | ||
// Example function | ||
println!("Hello, world!"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters