Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
browniebroke committed Oct 26, 2024
1 parent 0a169f6 commit 9a422e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyproject-fmt/rust/src/dependency_groups.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ use common::pep508::{format_requirement, get_canonic_requirement_name};
use common::table::{collapse_sub_tables, for_entries, reorder_table_keys, Tables};

#[allow(clippy::too_many_lines)]
pub fn fix(tables: &mut Tables,
keep_full_version: bool,) {
pub fn fix(tables: &mut Tables, keep_full_version: bool) {
collapse_sub_tables(tables, "dependency-groups");
let table_element = tables.get("dependency-groups");
if table_element.is_none() {
return;
}

let table = &mut table_element.unwrap().first().unwrap().borrow_mut();
for_entries(table, &mut |_key, entry| {
transform(entry, &|s| format_requirement(s, keep_full_version));
Expand Down

0 comments on commit 9a422e3

Please sign in to comment.