Skip to content

Commit 20c78f2

Browse files
authored
Merge branch 'master' into dependabot/cargo/serde_json-1.0.91
2 parents 4ddf86c + 4f39937 commit 20c78f2

File tree

6 files changed

+20
-20
lines changed

6 files changed

+20
-20
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
cp "target/${{ matrix.target }}/release/$BIN_NAME" "dist/"
9999
fi
100100
101-
- uses: actions/[email protected].1
101+
- uses: actions/[email protected].2
102102
with:
103103
name: bins-${{ matrix.build }}
104104
path: dist

Cargo.lock

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ strip = "symbols"
2828

2929
[dependencies]
3030
serde_json = "1.0.91"
31-
serde = { version = "1.0.150", features = ["derive"] }
31+
serde = { version = "1.0.152", features = ["derive"] }
3232
dirs = "4.0.0"
3333
rpassword = "7.2.0"
3434
data-encoding = "2.3.3"
3535
crossterm = "0.25.0"
3636
tui = "0.19.0"
3737
copypasta-ext = "0.3.9"
3838
zeroize = "1.4.3"
39-
clap = "4.0.29"
39+
clap = "4.0.32"
4040
hmac = "0.12.1"
4141
sha-1 = "0.10.1"
4242
sha2 = "0.10.6"
@@ -48,7 +48,7 @@ aes-gcm = "0.10.1"
4848
hex = "0.4.3"
4949
qrcode = "0.12.0"
5050
urlencoding = "2.1.2"
51-
regex = "1.7.0"
51+
regex = "1.7.1"
5252
lazy_static = "1.4.0"
53-
base64 = "0.20.0"
53+
base64 = "0.21.0"
5454
md-5 = "0.10.5"

src/interface/app.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ impl App {
170170
.fg(Color::Black)
171171
.add_modifier(Modifier::BOLD),
172172
)
173-
.percent(self.progress as u16)
173+
.percent(self.progress)
174174
.label(progress_label);
175175

176176
frame.render_widget(search_bar, rects[0]);

src/otp/otp_element.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ impl OTPElement {
243243
}
244244

245245
pub fn get_qrcode(&self) -> String {
246-
QrCode::new(&self.get_otpauth_uri())
246+
QrCode::new(self.get_otpauth_uri())
247247
.unwrap()
248248
.render::<unicode::Dense1x2>()
249249
.dark_color(unicode::Dense1x2::Light)
@@ -285,7 +285,7 @@ impl OTPElement {
285285
Some(pin) => motp(
286286
&self.secret,
287287
pin.as_str(),
288-
self.period as u64,
288+
self.period,
289289
self.digits as usize,
290290
),
291291
None => Err(String::from(

src/reading.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pub fn get_elements() -> Result<ReadResult, String> {
1818
}
1919

2020
pub fn read_decrypted_text(password: &str) -> Result<(String, Vec<u8>, Vec<u8>), String> {
21-
let encrypted_contents = match read_to_string(&get_db_path()) {
21+
let encrypted_contents = match read_to_string(get_db_path()) {
2222
Ok(result) => result,
2323
Err(e) => {
2424
// no need to zeroize since contents are encrypted

0 commit comments

Comments
 (0)