Skip to content

Commit bc1808f

Browse files
committed
[PM-24468] Remove unused pub(super)
1 parent 46a1b7a commit bc1808f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/bitwarden-vault/src/cipher_risk/hibp.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pub(super) const HIBP_DEFAULT_BASE_URL: &str = "https://api.pwnedpasswords.com";
1010
/// Hash password with SHA-1 and split into prefix/suffix for k-anonymity.
1111
///
1212
/// Returns a tuple of (prefix: first 5 chars, suffix: remaining chars).
13-
pub(super) fn hash_password_for_hibp(password: &str) -> (String, String) {
13+
fn hash_password_for_hibp(password: &str) -> (String, String) {
1414
use sha1::{Digest, Sha1};
1515

1616
let hash = Sha1::digest(password.as_bytes());
@@ -24,7 +24,7 @@ pub(super) fn hash_password_for_hibp(password: &str) -> (String, String) {
2424
/// Response format: "SUFFIX:COUNT\r\n..." (e.g.,
2525
/// "0018A45C4D1DEF81644B54AB7F969B88D65:3\r\n...").
2626
/// Returns the number of times the password appears in breaches (0 if not found).
27-
pub(super) fn parse_hibp_response(response: &str, target_suffix: &str) -> u32 {
27+
fn parse_hibp_response(response: &str, target_suffix: &str) -> u32 {
2828
response
2929
.lines()
3030
.filter_map(|l| l.split_once(':'))

crates/bitwarden-vault/src/cipher_risk/password_strength.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pub(super) fn calculate_password_strength(password: &str, username: Option<&str>
2626
/// - For emails: extracts and tokenizes the local part (before @)
2727
/// - For usernames: tokenizes the entire string
2828
/// - Splits on non-alphanumeric characters and converts to lowercase
29-
pub(super) fn extract_user_inputs(username: &str) -> Vec<String> {
29+
fn extract_user_inputs(username: &str) -> Vec<String> {
3030
username
3131
// Check if it's email-like (contains @)
3232
.split_once('@')

0 commit comments

Comments
 (0)