@@ -35,88 +35,50 @@ mod a {
35
35
36
36
mod indent4 {
37
37
use column_____________________________________________________________________________________102:: {
38
- Foo ,
39
- bar:: Bar ,
40
- bar:: baz:: Baz ,
41
- Foo2 ,
42
- bar:: Bar2 ,
38
+ Foo , Foo2 , bar:: Bar , bar:: Bar2 , bar:: baz:: Baz ,
43
39
} ;
44
40
45
41
use column_______________________________________________________________________________096:: {
46
- Foo ,
47
- bar:: Bar ,
48
- bar:: baz:: Baz ,
49
- Foo2 ,
50
- bar:: Bar2 ,
42
+ Foo , Foo2 , bar:: Bar , bar:: Bar2 , bar:: baz:: Baz ,
51
43
} ;
52
44
53
45
use column_________________________________________________________________________090:: {
54
- Foo ,
55
- bar:: Bar ,
56
- bar:: baz:: Baz ,
57
- Foo2 ,
58
- bar:: Bar2 ,
46
+ Foo , Foo2 , bar:: Bar , bar:: Bar2 , bar:: baz:: Baz ,
59
47
} ;
60
48
61
- use c012:: c018:: c024:: c030:: c036:: c042:: c048:: c054:: c060:: c066:: c072:: c078:: c084:: c090:: c096:: c102:: {
62
- Foo ,
63
- bar:: Bar ,
64
- bar:: baz:: Baz ,
65
- Foo2 ,
66
- bar:: Bar2 ,
67
- } ;
49
+ use c012:: c018:: c024:: c030:: c036:: c042:: c048:: c054:: c060:: c066:: c072:: c078:: c084:: c090:: c096::
50
+ c102:: { Foo , Foo2 , bar:: Bar , bar:: Bar2 , bar:: baz:: Baz } ;
68
51
69
52
use c012:: c018:: c024:: c030:: c036:: c042:: c048:: c054:: c060:: c066:: c072:: c078:: c084:: c090:: c096:: {
70
- Foo ,
71
- bar:: Bar ,
72
- bar:: baz:: Baz ,
73
- Foo2 ,
74
- bar:: Bar2 ,
53
+ Foo , Foo2 , bar:: Bar , bar:: Bar2 , bar:: baz:: Baz ,
75
54
} ;
76
55
77
56
use c012:: c018:: c024:: c030:: c036:: c042:: c048:: c054:: c060:: c066:: c072:: c078:: c084:: c090:: {
78
- Foo ,
79
- bar:: Bar ,
80
- bar:: baz:: Baz ,
81
- Foo2 ,
82
- bar:: Bar2 ,
57
+ Foo , Foo2 , bar:: Bar , bar:: Bar2 , bar:: baz:: Baz ,
83
58
} ;
84
59
85
60
use c012:: c018:: c024:: c030:: c036:: c042:: c048:: c054:: c060:: c066:: c072:: c078:: c084:: {
86
- Foo ,
87
- bar:: Bar ,
88
- bar:: baz:: Baz ,
89
- Foo2 ,
90
- bar:: Bar2 ,
61
+ Foo , Foo2 , bar:: Bar , bar:: Bar2 , bar:: baz:: Baz ,
91
62
} ;
92
63
93
64
// Check that the behavior when "{" exceeds the max column.
94
65
//
95
66
// Note that `shape.offset_left(4)?.sub_width(1)?;` in
96
67
// `rewrite_reorderable_or_regroupable_items()` replaces the max column 100 by 99.
97
68
98
- use x:: column______________________________________________________________________________098:: {
99
- Foo ,
100
- bar:: Bar ,
101
- bar:: baz:: Baz ,
102
- Foo2 ,
103
- bar:: Bar2 ,
69
+ use x::
70
+ column______________________________________________________________________________098:: {
71
+ Foo , Foo2 , bar:: Bar , bar:: Bar2 , bar:: baz:: Baz ,
104
72
} ;
105
73
106
- use x:: column__Only_the_last_one_wraps_due_to_brace_______________________________________097:: {
107
- Foo ,
108
- bar:: Bar ,
109
- bar:: baz:: Baz ,
110
- Foo2 ,
111
- bar:: Bar2 ,
74
+ use x::
75
+ column__Only_the_last_one_wraps_due_to_brace_______________________________________097:: {
76
+ Foo , Foo2 , bar:: Bar , bar:: Bar2 , bar:: baz:: Baz ,
112
77
} ;
113
78
114
- use x:: column_____________________________________________________________________________096:: {
115
- Foo ,
116
- bar:: Bar ,
117
- bar:: baz:: Baz ,
118
- Foo2 ,
119
- bar:: Bar2 ,
79
+ use x::
80
+ column_____________________________________________________________________________096:: {
81
+ Foo , Foo2 , bar:: Bar , bar:: Bar2 , bar:: baz:: Baz ,
120
82
} ;
121
83
122
84
// Test for top-level `UseSegmentKind::List`.
@@ -128,7 +90,7 @@ mod indent4 {
128
90
129
91
use smithay:: {
130
92
backend:: renderer:: element:: {
131
- default_primary_scanout_output_compare, utils:: select_dmabuf_feedback, RenderElementStates ,
93
+ RenderElementStates , default_primary_scanout_output_compare, utils:: select_dmabuf_feedback,
132
94
} ,
133
95
delegate_compositor, delegate_data_control, delegate_data_device, delegate_fractional_scale,
134
96
delegate_input_method_manager, delegate_keyboard_shortcuts_inhibit, delegate_layer_shell,
@@ -138,37 +100,37 @@ use smithay::{
138
100
delegate_viewporter, delegate_virtual_keyboard_manager, delegate_xdg_activation,
139
101
delegate_xdg_decoration, delegate_xdg_shell,
140
102
desktop:: {
103
+ PopupKind , PopupManager , Space ,
141
104
space:: SpaceElement ,
142
105
utils:: {
143
- surface_presentation_feedback_flags_from_states , surface_primary_scanout_output ,
144
- update_surface_primary_scanout_output , OutputPresentationFeedback ,
106
+ OutputPresentationFeedback , surface_presentation_feedback_flags_from_states ,
107
+ surface_primary_scanout_output , update_surface_primary_scanout_output ,
145
108
} ,
146
- PopupKind , PopupManager , Space ,
147
109
} ,
148
110
input:: {
111
+ Seat , SeatHandler , SeatState ,
149
112
keyboard:: { Keysym , LedState , XkbConfig } ,
150
113
pointer:: { CursorImageStatus , PointerHandle } ,
151
- Seat , SeatHandler , SeatState ,
152
114
} ,
153
115
output:: Output ,
154
116
reexports:: {
155
- calloop:: { generic :: Generic , Interest , LoopHandle , Mode , PostAction } ,
117
+ calloop:: { Interest , LoopHandle , Mode , PostAction , generic :: Generic } ,
156
118
wayland_protocols:: xdg:: decoration:: {
157
119
self as xdg_decoration,
158
120
zv1:: server:: zxdg_toplevel_decoration_v1:: Mode as DecorationMode ,
159
121
} ,
160
122
wayland_server:: {
123
+ Display , DisplayHandle , Resource ,
161
124
backend:: { ClientData , ClientId , DisconnectReason } ,
162
125
protocol:: { wl_data_source:: WlDataSource , wl_surface:: WlSurface } ,
163
- Display , DisplayHandle , Resource ,
164
126
} ,
165
127
} ,
166
128
utils:: { Clock , Monotonic , Rectangle } ,
167
129
wayland:: {
168
- compositor:: { get_parent , with_states , CompositorClientState , CompositorState } ,
130
+ compositor:: { CompositorClientState , CompositorState , get_parent , with_states } ,
169
131
dmabuf:: DmabufFeedback ,
170
132
fractional_scale:: {
171
- with_fractional_scale , FractionalScaleHandler , FractionalScaleManagerState ,
133
+ FractionalScaleHandler , FractionalScaleManagerState , with_fractional_scale ,
172
134
} ,
173
135
input_method:: { InputMethodHandler , InputMethodManagerState , PopupSurface } ,
174
136
keyboard_shortcuts_inhibit:: {
@@ -177,7 +139,7 @@ use smithay::{
177
139
} ,
178
140
output:: { OutputHandler , OutputManagerState } ,
179
141
pointer_constraints:: {
180
- with_pointer_constraint , PointerConstraintsHandler , PointerConstraintsState ,
142
+ PointerConstraintsHandler , PointerConstraintsState , with_pointer_constraint ,
181
143
} ,
182
144
pointer_gestures:: PointerGesturesState ,
183
145
presentation:: PresentationState ,
@@ -188,21 +150,21 @@ use smithay::{
188
150
SecurityContextState ,
189
151
} ,
190
152
selection:: data_device:: {
191
- set_data_device_focus , ClientDndGrabHandler , DataDeviceHandler , DataDeviceState ,
192
- ServerDndGrabHandler ,
153
+ ClientDndGrabHandler , DataDeviceHandler , DataDeviceState , ServerDndGrabHandler ,
154
+ set_data_device_focus ,
193
155
} ,
194
156
selection:: {
157
+ SelectionHandler ,
195
158
primary_selection:: {
196
- set_primary_focus , PrimarySelectionHandler , PrimarySelectionState ,
159
+ PrimarySelectionHandler , PrimarySelectionState , set_primary_focus ,
197
160
} ,
198
161
wlr_data_control:: { DataControlHandler , DataControlState } ,
199
- SelectionHandler ,
200
162
} ,
201
163
shell:: {
202
164
wlr_layer:: WlrLayerShellState ,
203
165
xdg:: {
204
- decoration:: { XdgDecorationHandler , XdgDecorationState } ,
205
166
ToplevelSurface , XdgShellState , XdgToplevelSurfaceData ,
167
+ decoration:: { XdgDecorationHandler , XdgDecorationState } ,
206
168
} ,
207
169
} ,
208
170
shm:: { ShmHandler , ShmState } ,
0 commit comments