Skip to content

Commit 098f7e7

Browse files
committed
fmt
1 parent 7c6c843 commit 098f7e7

File tree

5 files changed

+5
-21
lines changed

5 files changed

+5
-21
lines changed

catalyst-toolbox/src/bin/cli/kedqr/decode/img.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@ use std::io::Write;
1010
use std::path::Path;
1111
use std::path::PathBuf;
1212

13-
pub fn save_secret_from_qr(
14-
qr: PathBuf,
15-
output: Option<PathBuf>,
16-
pin: QrPin,
17-
) -> Result<(), Report> {
13+
pub fn save_secret_from_qr(qr: PathBuf, output: Option<PathBuf>, pin: QrPin) -> Result<(), Report> {
1814
let sk = secret_from_qr(&qr, pin)?;
1915
let hrp = Ed25519Extended::SECRET_BECH32_HRP;
2016
let secret_key = bech32::encode(hrp, sk.leak_secret().to_base32(), Variant::Bech32)?;

catalyst-toolbox/src/bin/cli/kedqr/decode/payload.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@ use std::{
88
path::{Path, PathBuf},
99
};
1010

11-
pub fn decode_payload(
12-
input: PathBuf,
13-
output: Option<PathBuf>,
14-
pin: QrPin,
15-
) -> Result<(), Report> {
11+
pub fn decode_payload(input: PathBuf, output: Option<PathBuf>, pin: QrPin) -> Result<(), Report> {
1612
// generate qrcode with key and parsed pin
1713
let secret = secret_from_payload(input, pin)?;
1814
let hrp = Ed25519Extended::SECRET_BECH32_HRP;

catalyst-toolbox/src/bin/cli/kedqr/encode/img.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@ use std::{
88
path::PathBuf,
99
};
1010

11-
pub fn generate_qr(
12-
input: PathBuf,
13-
output: Option<PathBuf>,
14-
pin: QrPin,
15-
) -> Result<(), Report> {
11+
pub fn generate_qr(input: PathBuf, output: Option<PathBuf>, pin: QrPin) -> Result<(), Report> {
1612
// open input key and parse it
1713
let key_file = OpenOptions::new()
1814
.create(false)

catalyst-toolbox/src/bin/cli/kedqr/encode/payload.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@ use std::{
1111
path::PathBuf,
1212
};
1313

14-
pub fn generate_payload(
15-
input: PathBuf,
16-
output: Option<PathBuf>,
17-
pin: QrPin,
18-
) -> Result<(), Report> {
14+
pub fn generate_payload(input: PathBuf, output: Option<PathBuf>, pin: QrPin) -> Result<(), Report> {
1915
// open input key and parse it
2016
let key_file = OpenOptions::new()
2117
.create(false)

catalyst-toolbox/src/bin/cli/vote_check/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use color_eyre::Report;
21
use color_eyre::eyre::bail;
2+
use color_eyre::Report;
33
use structopt::StructOpt;
44

55
use catalyst_toolbox::vote_check::CheckNode;

0 commit comments

Comments
 (0)