Skip to content

Commit

Permalink
fix rattler_networking docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vlad-ivanov-name committed Jan 23, 2024
1 parent 52bc803 commit 435d1d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion crates/rattler_networking/src/authentication_middleware.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! HTTP client that authenticates requests
//! `reqwest` middleware that authenticates requests with data from the `AuthenticationStorage`
use crate::{Authentication, AuthenticationStorage};
use async_trait::async_trait;
Expand Down Expand Up @@ -45,6 +45,7 @@ impl Middleware for AuthenticationMiddleware {
}

impl AuthenticationMiddleware {
/// Create a new authentication middleware with the given authentication storage
pub fn new(auth_storage: AuthenticationStorage) -> Self {
Self { auth_storage }
}
Expand Down
2 changes: 1 addition & 1 deletion crates/rattler_networking/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//#![deny(missing_docs)]
#![deny(missing_docs)]

//! Networking utilities for Rattler, specifically authenticating requests
pub use authentication_middleware::AuthenticationMiddleware;
Expand Down

0 comments on commit 435d1d4

Please sign in to comment.