File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
libcraft/text/src/text/markdown Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ impl Window {
196
196
}
197
197
198
198
fn shift_click_in_player_window ( & mut self , slot : usize ) -> SysResult {
199
- let mut slot_item = & mut * self . inner . item ( slot) ?;
199
+ let slot_item = & mut * self . inner . item ( slot) ?;
200
200
201
201
let ( inventory, slot_area, _) = self . inner . index_to_slot ( slot) . unwrap ( ) ;
202
202
let areas_to_try = [
@@ -238,7 +238,7 @@ impl Window {
238
238
let mut i = 0 ;
239
239
while let Some ( mut stack) = inventory. item ( area, i) {
240
240
if stack. is_empty ( ) {
241
- stack. merge ( & mut slot_item) ;
241
+ stack. merge ( slot_item) ;
242
242
}
243
243
i += 1 ;
244
244
}
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ impl<'a> InputIter for Tokens<'a> {
139
139
where
140
140
P : Fn ( Self :: Item ) -> bool ,
141
141
{
142
- self . tok . iter ( ) . position ( |b| predicate ( b ) )
142
+ self . tok . iter ( ) . position ( predicate)
143
143
}
144
144
145
145
fn slice_index ( & self , count : usize ) -> Option < usize > {
You can’t perform that action at this time.
0 commit comments