Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a9ed3ed

Browse files
authored
style: include enum_glob_use (TheAlgorithms#888)
1 parent b639d14 commit a9ed3ed

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

‎Cargo.toml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ cast_precision_loss = { level = "allow", priority = 1 }
3131
cast_sign_loss = { level = "allow", priority = 1 }
3232
cloned_instead_of_copied = { level = "allow", priority = 1 }
3333
doc_markdown = { level = "allow", priority = 1 }
34-
enum_glob_use = { level = "allow", priority = 1 }
3534
explicit_deref_methods = { level = "allow", priority = 1 }
3635
explicit_iter_loop = { level = "allow", priority = 1 }
3736
float_cmp = { level = "allow", priority = 1 }

‎src/sorting/dutch_national_flag_sort.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub enum Colors {
1111
White, // | Define the three colors of the Dutch Flag: 🇳🇱
1212
Blue, // /
1313
}
14-
use Colors::*;
14+
use Colors::{Blue,Red,White};
1515

1616
// Algorithm implementation
1717
pub fn dutch_national_flag_sort(mut sequence: Vec<Colors>) -> Vec<Colors> {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /