Skip to content

Commit

Permalink
change type of user and password to BytesStr
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Funke committed Jul 17, 2024
1 parent 7aeed4f commit aa439b3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/sip-auth/src/digest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ use sip_types::header::typed::{
use sip_types::print::{AppendCtx, PrintCtx, UriContext};

pub struct DigestCredentials {
user: String,
password: String,
user: BytesStr,
password: BytesStr,
}

impl DigestCredentials {
pub fn new<U, P>(user: U, password: P) -> Self
where
U: Into<String>,
P: Into<String>,
U: Into<BytesStr>,
P: Into<BytesStr>,
{
Self {
user: user.into(),
Expand Down

0 comments on commit aa439b3

Please sign in to comment.