mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-27 17:22:57 +01:00
clippy
This commit is contained in:
parent
140453c649
commit
4d2f4d58b4
@ -162,8 +162,7 @@ fn enforce_policies(req: &ServiceRequest, configuration: &Configuration) {
|
|||||||
) {
|
) {
|
||||||
identity.logout();
|
identity.logout();
|
||||||
return;
|
return;
|
||||||
} else {
|
} else if let Err(err) = identity.set_last_visited_at() {
|
||||||
if let Err(err) = identity.set_last_visited_at() {
|
|
||||||
tracing::warn!(
|
tracing::warn!(
|
||||||
error.display = %err,
|
error.display = %err,
|
||||||
error.debug = ?err,
|
error.debug = ?err,
|
||||||
@ -172,7 +171,6 @@ fn enforce_policies(req: &ServiceRequest, configuration: &Configuration) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
fn enforce_login_deadline(
|
fn enforce_login_deadline(
|
||||||
identity: &Identity,
|
identity: &Identity,
|
||||||
|
@ -103,14 +103,14 @@ impl TestApp {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Debug, PartialEq)]
|
#[derive(Debug, PartialEq, Eq, Serialize, Deserialize)]
|
||||||
pub struct EndpointResponse {
|
pub struct EndpointResponse {
|
||||||
pub user_id: Option<String>,
|
pub user_id: Option<String>,
|
||||||
pub counter: i32,
|
pub counter: i32,
|
||||||
pub session_status: String,
|
pub session_status: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Debug, PartialEq)]
|
#[derive(Debug, PartialEq, Eq, Serialize, Deserialize)]
|
||||||
struct LoginRequest {
|
struct LoginRequest {
|
||||||
user_id: String,
|
user_id: String,
|
||||||
}
|
}
|
||||||
|
@ -287,7 +287,7 @@ mod tests {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, PartialEq, Message)]
|
#[derive(Clone, PartialEq, Eq, Message)]
|
||||||
pub struct MyObject {
|
pub struct MyObject {
|
||||||
#[prost(int32, tag = "1")]
|
#[prost(int32, tag = "1")]
|
||||||
pub number: i32,
|
pub number: i32,
|
||||||
|
@ -648,7 +648,7 @@ pub mod test_helpers {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Debug, PartialEq)]
|
#[derive(Debug, PartialEq, Eq, Serialize, Deserialize)]
|
||||||
pub struct IndexResponse {
|
pub struct IndexResponse {
|
||||||
user_id: Option<String>,
|
user_id: Option<String>,
|
||||||
counter: i32,
|
counter: i32,
|
||||||
|
Loading…
Reference in New Issue
Block a user