clippy: shorten assignments

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler committed 2021-01-20 16:23:54 +01:00
1 parent 1e0c6194b5
commit a3775bb4e8
4 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -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()
};