Skip to content

Commit

Permalink
refactor: Reorder members in ruff::settings::options_base
Browse files Browse the repository at this point in the history
  • Loading branch information
not-my-profile authored and charliermarsh committed Feb 12, 2023
1 parent 3063930 commit 37e80d9
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions crates/ruff/src/settings/options_base.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
pub trait ConfigurationOptions {
fn get_available_options() -> Vec<OptionEntry>;
}

#[derive(Debug)]
pub struct OptionGroup {
pub name: &'static str,
pub fields: Vec<OptionEntry>,
pub enum OptionEntry {
Field(OptionField),
Group(OptionGroup),
}

#[derive(Debug)]
Expand All @@ -14,11 +18,7 @@ pub struct OptionField {
}

#[derive(Debug)]
pub enum OptionEntry {
Field(OptionField),
Group(OptionGroup),
}

pub trait ConfigurationOptions {
fn get_available_options() -> Vec<OptionEntry>;
pub struct OptionGroup {
pub name: &'static str,
pub fields: Vec<OptionEntry>,
}

0 comments on commit 37e80d9

Please sign in to comment.