Skip to content

Commit

Permalink
fix: pass cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
HoKim98 committed Jul 31, 2024
1 parent 41cddfa commit b827940
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/cassette/src/components/actor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -407,9 +407,9 @@ fn build_form_delete(ctx: FormDeleteContext) -> Html {
label_apply,
} = ctx;

let handler_name = format!("form delete apply");
let handler_name = "form delete apply";
let force_init = false;
let state = ctx.use_state(&handler_name, force_init, || FetchState::<Value>::Pending);
let state = ctx.use_state(handler_name, force_init, || FetchState::<Value>::Pending);

let onclick = {
let base_url = base_url.cloned();
Expand All @@ -420,7 +420,7 @@ fn build_form_delete(ctx: FormDeleteContext) -> Html {
let base_url = base_url.clone().unwrap_or(get_gateway());
let request = FetchRequest {
method: Method::POST,
name: Cow::Owned(handler_name.clone()),
name: Cow::Borrowed(handler_name),
uri: uri.clone(),
body: Some(Body::Json(Value::default())),
};
Expand Down

0 comments on commit b827940

Please # to comment.