perf: the import comes first

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
FredApps
2026-11-05 16:49:06 +07:00
committed by bflatastic
co-authored by Claude Opus 5.5
parent a33d83d84f
commit 0a8566e1b0
+1 -1
View File
@@ -190,8 +190,8 @@ fn budget_row(name: &str, ms: f64, budget: f64, ok: bool) -> String {
/// Tracked rows for pointing at things in an n-path document: what hovering, clicking, marquee
/// selection and snapping cost when nothing narrows the search.
fn pointing(n: usize, rows: &mut Vec<(String, f64)>) -> Result<(), String> {
let err = |e: vectorcraft_engine::EngineError| e.to_string();
use vectorcraft_engine::tools::{Mods, PointerEvent, PointerKind};
let err = |e: vectorcraft_engine::EngineError| e.to_string();
let mut s = vectorcraft_engine::Session::new();
s.add_document(synthetic(n)?, None);
let view = vectorcraft_engine::ViewInfo { zoom: 1.0, ..Default::default() };