cargo fmt

This commit is contained in:
Simon Gardling 2025-12-05 20:29:15 -05:00
parent 07858b229f
commit 5480522ddb
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D
4 changed files with 64 additions and 60 deletions

View File

@ -6,8 +6,8 @@ use allsorts::{
tag,
};
use epaint::{
text::{FontData, FontDefinitions, FontTweak},
FontFamily,
text::{FontData, FontDefinitions, FontTweak},
};
use std::{
collections::BTreeMap,

View File

@ -138,8 +138,6 @@ impl BackingFunction {
}
}
/// Case insensitive checks for if `c` is a character used to represent a variable
#[inline]
pub const fn is_variable(c: &char) -> bool {

View File

@ -19,7 +19,13 @@ pub fn widgets_ontop<R>(
/// A toggle button that XORs its state when clicked.
/// Shows different hover text based on current state.
pub fn toggle_button(ui: &mut Ui, state: &mut bool, label: &str, enabled_tip: &str, disabled_tip: &str) {
pub fn toggle_button(
ui: &mut Ui,
state: &mut bool,
label: &str,
enabled_tip: &str,
disabled_tip: &str,
) {
state.bitxor_assign(
ui.add(Button::new(label))
.on_hover_text(if *state { enabled_tip } else { disabled_tip })