Skip to content

Commit

Permalink
Clippy Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
BanjoFox committed Sep 5, 2023
1 parent f02d5cb commit cf76e08
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion aardwolf-actix/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ pub fn run(config: &Config, database_url: &str) -> Result<(), Box<dyn Error>> {
let secret_key = Key::generate();

#[cfg(debug_assertions)]
let assets = assets::Assets::from_config(&config)?;
let assets = assets::Assets::from_config(config)?;

let sys = System::new();

Expand Down
4 changes: 2 additions & 2 deletions aardwolf-actix/src/routes/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ pub(crate) async fn index(
) -> HttpResponse {
Home::new(
&i18n.catalog,
&actor.1.shortname(),
&actor.0.profile_url().0.to_string(),
actor.1.shortname(),
actor.0.profile_url().0.as_ref(),
"csrf token",
&PostCreationFormState {
source: "".to_owned(),
Expand Down
2 changes: 1 addition & 1 deletion aardwolf-actix/src/routes/posts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ impl ResponseError for PostCreateResponseError {
&self.i18n.catalog,
&self.csrf_token,
self.persona.shortname(),
&self.base_actor.profile_url().0.to_string(),
self.base_actor.profile_url().0.as_ref(),
&self.form_state,
validation,
system,
Expand Down
2 changes: 1 addition & 1 deletion aardwolf-actix/src/types/actor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ fn extract(
let state = state.clone();

Session::extract(&req)
.map_ok(move |session| (state.clone(), session.clone()))
.map_ok(move |session| (state, session))
.map_err(|_: _| CurrentActorError::Cookie.into())
.boxed_local()
}
Expand Down
2 changes: 1 addition & 1 deletion aardwolf-actix/src/types/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ fn extract(
let state = state.clone();

Session::extract(&req)
.map_ok(move |session| (state.clone(), session.clone()))
.map_ok(move |session| (state, session))
.map_err(|_: _| SignedInUserError::Cookie.into())
.boxed_local()
}
Expand Down

0 comments on commit cf76e08

Please sign in to comment.