Skip to content

Commit

Permalink
fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
rkrishn7 committed Dec 7, 2023
1 parent 5542cf6 commit 8a890f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/kiwi/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ impl Config {
}

fn from_str(contents: &str) -> Result<Self, anyhow::Error> {
let config = serde_yaml::from_str::<'_, Config>(&contents)?;
let config = serde_yaml::from_str::<'_, Config>(contents)?;

Ok(config)
}
Expand Down
2 changes: 1 addition & 1 deletion src/kiwi/src/ws.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ where
stream,
|req: &Request, res: Response| {
if let Some(hook) = authenticate_hook {
let outcome = tokio::task::block_in_place(|| hook.authenticate(&req));
let outcome = tokio::task::block_in_place(|| hook.authenticate(req));

match outcome {
Ok(Outcome::Authenticate) => (),
Expand Down

0 comments on commit 8a890f0

Please sign in to comment.