Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running Clippy Fixes against Aardwolf-Actix #319

Merged
merged 4 commits into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading