clippy: shorten assignments
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
1 parent
1e0c6194b5
commit
a3775bb4e8
4 files changed
+6
-6
No files matched your search
@@ -120,7 +120,7 @@ fn parse_weekdays_range(i: &str) -> IResult<&str, WeekDays> {
|
||||
loop {
|
||||
res |= pos;
|
||||
if pos >= end { break; }
|
||||
pos = pos << 1;
|
||||
pos <<= 1;
|
||||
}
|
||||
WeekDays::from_bits(res).unwrap()
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user