diff options
-rw-r--r-- | autocrypt/src/lib.rs | 2 | ||||
-rw-r--r-- | buffered-reader/src/lib.rs | 2 | ||||
-rw-r--r-- | openpgp/src/parse.rs | 2 | ||||
-rw-r--r-- | openpgp/src/types/key_flags.rs | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/autocrypt/src/lib.rs b/autocrypt/src/lib.rs index aa82aed8..4a24a203 100644 --- a/autocrypt/src/lib.rs +++ b/autocrypt/src/lib.rs @@ -471,7 +471,7 @@ impl AutocryptSetupMessage { } p.push(b'0' + ((p_as_u128 as u8) % 10)); - p_as_u128 = p_as_u128 / 10; + p_as_u128 /= 10; } p.into() diff --git a/buffered-reader/src/lib.rs b/buffered-reader/src/lib.rs index 918b7268..1ee7514b 100644 --- a/buffered-reader/src/lib.rs +++ b/buffered-reader/src/lib.rs @@ -834,7 +834,7 @@ pub trait BufferedReader<C> : io::Read + fmt::Debug + fmt::Display + Send + Sync writeln!(sink, " {}. {}, {:?}", i, r, cookie)?; } reader = r.get_ref(); - i = i + 1; + i += 1; } Ok(()) } diff --git a/openpgp/src/parse.rs b/openpgp/src/parse.rs index 803813e8..549b94f2 100644 --- a/openpgp/src/parse.rs +++ b/openpgp/src/parse.rs @@ -4254,7 +4254,7 @@ impl <'a> PacketParser<'a> { } } - skip = skip + 1; + skip += 1; } // Prepare to actually consume the header or garbage. diff --git a/openpgp/src/types/key_flags.rs b/openpgp/src/types/key_flags.rs index 819d4974..292afb6a 100644 --- a/openpgp/src/types/key_flags.rs +++ b/openpgp/src/types/key_flags.rs @@ -137,7 +137,7 @@ impl BitOr for &KeyFlags { let mut l = l.to_vec(); for (i, r) in r.into_iter().enumerate() { - l[i] = l[i] | r; + l[i] |= r; } KeyFlags(l.into()) |