Skip to content

Commit

Permalink
Downgrade protobuf to run on rust 1.41
Browse files Browse the repository at this point in the history
  • Loading branch information
pajowu committed Oct 9, 2020
1 parent dd85cab commit e4439b7
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 58 deletions.
79 changes: 25 additions & 54 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "signal-backup-decode"
version = "0.2.0"
version = "0.2.1"
authors = ["pajowu <[email protected]>"]
build = "build.rs"
description = "A simple tool to decode signal backups"
Expand All @@ -10,7 +10,7 @@ repository = "https://github.com/pajowu/signal-backup-decode"
edition = "2018"

[dependencies]
protobuf = "^2.14"
protobuf = "=2.14"
byteorder = "^1"
rust-ini = "^0.15"
clap = "^2.33"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This repository contains a small programm to decode a backup produced by [Signal

## Installation

**Rust v1.40 or higher is required**
**Rust v1.41 or higher is required**

```
cargo install signal-backup-decode
Expand Down
2 changes: 1 addition & 1 deletion src/decrypter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ impl Decrypter {
// TODO what is happening here?
pub fn increase_iv(&mut self) {
for v in self.iv.iter_mut().take(4).rev() {
if *v < u8::MAX {
if *v < std::u8::MAX {
*v += 1;
break;
} else {
Expand Down

0 comments on commit e4439b7

Please sign in to comment.