From b3afd6f5553f6f1ca39d80ab38c84f9af43a1261 Mon Sep 17 00:00:00 2001 From: Aaron Fenyes Date: Thu, 26 Sep 2024 19:16:41 -0700 Subject: [PATCH] App: Store selection in `BTreeSet` Since we're using `BTreeSet` for element constraint sets now, we might as well use it for the selection set too. This removes the `rustc-hash` dependency. --- app-proto/full-interface/Cargo.toml | 1 - app-proto/full-interface/src/main.rs | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app-proto/full-interface/Cargo.toml b/app-proto/full-interface/Cargo.toml index 920469a..7640b07 100644 --- a/app-proto/full-interface/Cargo.toml +++ b/app-proto/full-interface/Cargo.toml @@ -11,7 +11,6 @@ default = ["console_error_panic_hook"] itertools = "0.13.0" js-sys = "0.3.70" nalgebra = "0.33.0" -rustc-hash = "2.0.0" slab = "0.4.9" sycamore = "0.9.0-beta.3" diff --git a/app-proto/full-interface/src/main.rs b/app-proto/full-interface/src/main.rs index e867ad3..87e06db 100644 --- a/app-proto/full-interface/src/main.rs +++ b/app-proto/full-interface/src/main.rs @@ -4,7 +4,6 @@ mod display; mod outline; use nalgebra::DVector; -use rustc_hash::FxHashSet; use std::collections::BTreeSet; use sycamore::prelude::*; @@ -16,14 +15,14 @@ use outline::Outline; #[derive(Clone)] struct AppState { assembly: Assembly, - selection: Signal> + selection: Signal> } impl AppState { fn new() -> AppState { AppState { assembly: Assembly::new(), - selection: create_signal(FxHashSet::default()) + selection: create_signal(BTreeSet::default()) } } }