style(gui): rustfmt collapse QR QrCode::new line in totp_page
This commit is contained in:
@@ -144,8 +144,7 @@ impl TotpPage {
|
|||||||
// installed, Pixbuf creation fails and we silently skip the visual —
|
// installed, Pixbuf creation fails and we silently skip the visual —
|
||||||
// the secret_b32 + URI in the body remain a working manual-entry
|
// the secret_b32 + URI in the body remain a working manual-entry
|
||||||
// fallback.
|
// fallback.
|
||||||
let qr =
|
let qr = qrcode::QrCode::new(otpauth_uri.as_bytes()).expect("otpauth URI is QR-encodable");
|
||||||
qrcode::QrCode::new(otpauth_uri.as_bytes()).expect("otpauth URI is QR-encodable");
|
|
||||||
let svg = qr
|
let svg = qr
|
||||||
.render::<qrcode::render::svg::Color<'_>>()
|
.render::<qrcode::render::svg::Color<'_>>()
|
||||||
.min_dimensions(256, 256)
|
.min_dimensions(256, 256)
|
||||||
|
|||||||
Reference in New Issue
Block a user