From efdec4113b1b7d17525327dd455080187138a97a Mon Sep 17 00:00:00 2001 From: Zachary Bonagura Date: Mon, 14 Oct 2024 15:01:09 -0400 Subject: [PATCH] Updated fn_params_layout, fixed formatting errors Updated fn_params_layout from deprecated fn_args_layout, fixed formatting errors in fn render_rules_menu in mod.rs --- rustfmt.toml | 2 +- web-app/src/components/proof_widget/mod.rs | 24 +++++++++++----------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/rustfmt.toml b/rustfmt.toml index 86f7c7af..110964a9 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -1,3 +1,3 @@ use_small_heuristics = "max" -fn_args_layout = "compressed" +fn_params_layout = "compressed" max_width = 2147483647 diff --git a/web-app/src/components/proof_widget/mod.rs b/web-app/src/components/proof_widget/mod.rs index 075ac3ac..7029ad1d 100644 --- a/web-app/src/components/proof_widget/mod.rs +++ b/web-app/src/components/proof_widget/mod.rs @@ -172,7 +172,7 @@ impl ProofWidget { .rules() .map(|rule| { let pjref = Coproduct::inject(jref); - + // Determine the folder for the current theme let get_folder = || { if theme() == "dark" { @@ -182,12 +182,12 @@ impl ProofWidget { } }; let image_src = format!("{}/{}.png", get_folder(), rule.get_name()); - + html! {