We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Default
1 parent d8f1d18 commit 57029f6Copy full SHA for 57029f6
vm/src/stdlib/itertools.rs
@@ -666,6 +666,7 @@ mod decl {
666
}
667
668
669
+ #[derive(Default)]
670
struct GroupByState {
671
current_value: Option<PyObjectRef>,
672
current_key: Option<PyObjectRef>,
@@ -729,12 +730,7 @@ mod decl {
729
730
Self {
731
iterable,
732
key_func: key.flatten(),
- state: PyMutex::new(GroupByState {
733
- current_key: None,
734
- current_value: None,
735
- next_group: false,
736
- grouper: None,
737
- }),
+ state: PyMutex::new(GroupByState::default()),
738
739
.into_ref_with_type(vm, cls)
740
.map(Into::into)
0 commit comments