Skip to content

Commit

Permalink
Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Aug 10, 2024
1 parent c83d48a commit fde32df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ mod instance {
/// - SCRAM-SHA-1
/// - PLAIN
/// - LOGIN (**only enabled if `authzid` is set to `None`!**)
///
/// And will be preferred in this order.
#[allow(clippy::similar_names)]
pub fn with_credentials(
Expand Down
4 changes: 2 additions & 2 deletions src/mechanisms/xoauth2/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ impl Authentication for XOAuth2 {
&mut self,
session: &mut MechanismData,
input: Option<&[u8]>,
mut writer: &mut dyn Write,
writer: &mut dyn Write,
) -> Result<State, SessionError> {
match self.state {
XOAuth2State::Initial => {
session.need_with::<AuthId, _, _>(&EmptyProvider, |authid| {
let data = [b"user=", authid.as_bytes(), b"\x01auth=Bearer "];
let mut vecw = VectoredWriter::new(data);
vecw.write_all_vectored(&mut writer)?;
vecw.write_all_vectored(&mut *writer)?;
Ok(())
})?;

Expand Down

0 comments on commit fde32df

Please sign in to comment.