mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
Fix clippy::inconsistent_struct_constructor (#5905)
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 }))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user