clippy: assign_op_pattern
@@ -186,16 +186,16 @@ fn print_stats(diff: &Diff, args: &Args) -> Result<(), Error> {
let stats = try!(diff.stats());
let mut format = git2::DIFF_STATS_NONE;
if args.flag_stat {
- format = format | git2::DIFF_STATS_FULL;
+ format |= git2::DIFF_STATS_FULL;
}
if args.flag_shortstat {
- format = format | git2::DIFF_STATS_SHORT;
+ format |= git2::DIFF_STATS_SHORT;
}
if args.flag_numstat {
- format = format | git2::DIFF_STATS_NUMBER;
+ format |= git2::DIFF_STATS_NUMBER;
}
if args.flag_summary {
- format = format | git2::DIFF_STATS_INCLUDE_SUMMARY;
+ format |= git2::DIFF_STATS_INCLUDE_SUMMARY;
}
let buf = try!(stats.to_buf(format, 80));
print!("{}", str::from_utf8(&*buf).unwrap());
