clippy: shorten assignments

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler
2021-01-19 11:12:01 +01:00
parent 1e0c6194b5
commit a3775bb4e8
4 changed files with 6 additions and 6 deletions

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()
};