Fix clippy::inconsistent_struct_constructor (#5905)

This commit is contained in:
Shahar Naveh
2025-07-06 03:24:05 +03:00
committed by GitHub
parent 3c7ec04285
commit 9336507be6
3 changed files with 4 additions and 4 deletions

View File

@@ -1056,8 +1056,8 @@ impl Constructor for PyType {
let flags = PyTypeFlags::heap_type_flags() | PyTypeFlags::HAS_DICT;
let (slots, heaptype_ext) = {
let slots = PyTypeSlots {
member_count,
flags,
member_count,
..PyTypeSlots::heap_default()
};
let heaptype_ext = HeapTypeExt {

View File

@@ -88,7 +88,7 @@ fn ruff_format_spec_to_joined_str(
.map(ruff_fstring_element_to_joined_str_part)
.collect();
let values = values.into_boxed_slice();
Some(Box::new(JoinedStr { values, range }))
Some(Box::new(JoinedStr { range, values }))
}
}
}

View File

@@ -329,14 +329,14 @@ impl Context {
true_value,
false_value,
none,
typing_no_default,
empty_tuple,
empty_frozenset,
empty_str,
empty_bytes,
ellipsis,
not_implemented,
typing_no_default,
types,
exceptions,