Skip to content

Commit

Permalink
chore: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
fundon committed Mar 8, 2024
1 parent a3c5846 commit 92b2aed
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
12 changes: 6 additions & 6 deletions viz-core/src/middleware/helper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ use crate::types::{Cookie, Cookies, SameSite};
/// Cookie's Options
#[derive(Debug)]
pub struct CookieOptions {
/// Cookie's name, `viz.sid` by defaults
/// Cookie's `name`, `viz.sid` by defaults
pub name: &'static str,
/// Cookie's path, `/` by defaults
/// Cookie's `path`, `/` by defaults
pub path: &'static str,
/// Cookie's secure, `true` by defaults
/// Cookie's `secure`, `true` by defaults
pub secure: bool,
/// Cookie's http_only, `true` by defaults
/// Cookie's `http_only`, `true` by defaults
pub http_only: bool,
/// Cookie's maximum age, `24H` by defaults
pub max_age: Option<Duration>,
/// Cookie's domain
/// Cookie's `domain`
pub domain: Option<&'static str>,
/// Cookie's same_site, `Lax` by defaults
/// Cookie's `same_site`, `Lax` by defaults
pub same_site: Option<SameSite>,
}

Expand Down
5 changes: 2 additions & 3 deletions viz-core/src/types/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ use std::{
};

use crate::{
header,
headers::{self, HeaderMapExt},
Error, FromRequest, IntoResponse, Request, Response, Result, StatusCode, ThisError,
header, headers::HeaderMapExt, Error, FromRequest, IntoResponse, Request, Response, Result,
StatusCode, ThisError,
};

/// Extracts a header from the headers of a request.
Expand Down
2 changes: 1 addition & 1 deletion viz-core/src/types/websocket/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub enum WebSocketError {
#[error("request upgrade required")]
ConnectionNotUpgradable,

/// Transparents [tokio_tungstenite::tungstenite::Error].
/// Transparents [`tokio_tungstenite::tungstenite::Error`].
#[error(transparent)]
TungsteniteError(#[from] tokio_tungstenite::tungstenite::Error),
}
Expand Down

0 comments on commit 92b2aed

Please sign in to comment.