8000 Fix clippy::inconsistent_struct_constructor (#5905) · RustPython/RustPython@9336507 · GitHub
[go: up one dir, main page]

Skip to content
< 8000 /div>

Commit 9336507

Browse files
authored
Fix clippy::inconsistent_struct_constructor (#5905)
1 parent 3c7ec04 commit 9336507

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

vm/src/builtins/type.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1056,8 +1056,8 @@ impl Constructor for PyType {
10561056
let flags = PyTypeFlags::heap_type_flags() | PyTypeFlags::HAS_DICT;
10571057
let (slots, heaptype_ext) = {
10581058
let slots = PyTypeSlots {
1059-
member_count,
10601059
flags,
1060+
member_count,
10611061
..PyTypeSlots::heap_default()
10621062
};
10631063
let heaptype_ext = HeapTypeExt {

vm/src/stdlib/ast/string.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ fn ruff_format_spec_to_joined_str(
8888
.map(ruff_fstring_element_to_joined_str_part)
8989
.collect();
9090
let values = values.into_boxed_slice();
91-
Some(Box::new(JoinedStr { values, range }))
91+
Some(Box::new(JoinedStr { range, values }))
9292
}
9393
}
9494
}

vm/src/vm/context.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,14 +329,14 @@ impl Context {
329329
true_value,
330330
false_value,
331331
none,
332-
typing_no_default,
333332
empty_tuple,
334333
empty_frozenset,
335334
empty_str,
336335
empty_bytes,
337-
338336
ellipsis,
337+
339338
not_implemented,
339+
typing_no_default,
340340

341341
types,
342342
exceptions,

0 commit comments

Comments
 (0)
0