Skip to content

Commit

Permalink
fmt on main
Browse files Browse the repository at this point in the history
  • Loading branch information
Hinton committed Jan 22, 2024
1 parent b732486 commit efcdde5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions crates/bitwarden/src/tool/client_generator.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
use bitwarden_generators::{passphrase, password, username};

use crate::generators::{
PassphraseGeneratorRequest, PasswordGeneratorRequest, UsernameGeneratorRequest,
use crate::{
error::Result,
generators::{PassphraseGeneratorRequest, PasswordGeneratorRequest, UsernameGeneratorRequest},
Client,
};

use crate::{error::Result, Client};

pub struct ClientGenerator<'a> {
pub(crate) client: &'a crate::Client,
}
Expand Down
3 changes: 2 additions & 1 deletion crates/bitwarden/src/vault/totp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ fn derive_binary(hash: Vec<u8>) -> u32 {
| hash[offset + 3] as u32
}

/// This code is migrated from our javascript implementation and is not technically a correct base32 decoder since we filter out various characters, and use exact chunking.
/// This code is migrated from our javascript implementation and is not technically a correct base32
/// decoder since we filter out various characters, and use exact chunking.
fn decode_b32(s: &str) -> Vec<u8> {
let s = s.to_uppercase();

Expand Down

0 comments on commit efcdde5

Please sign in to comment.