diff options
Diffstat (limited to 'openpgp')
-rw-r--r-- | openpgp/src/parse.rs | 2 | ||||
-rw-r--r-- | openpgp/src/types/key_flags.rs | 2 |
2 files changed, 2 insertions, 2 deletions
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()) |