Skip to content

Commit 0ca3db5

Browse files
committed
gui: misc
1 parent 38059c0 commit 0ca3db5

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

gui/src/search/mod.rs

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -59,23 +59,7 @@ impl QueryTiming {
5959
}
6060
}
6161
}
62-
#[derive(thiserror::Error, Debug, Clone)]
63-
pub enum QueryError {
64-
#[error("Index out of bounds. Tried to access element {index} of a container of size {actual}")]
65-
OutOfBounds { index: u32, actual: u32 },
66-
#[error(
67-
"The thread running your query died. This usually means an error in entrace, and not in \
68-
your code."
69-
)]
70-
QueryDied,
71-
#[error("Error while running your query")]
72-
LuaError(#[source] mlua::Error),
73-
#[error(
74-
"Failed to coerce the result of your query to Vec<u32>. Make sure to return a list from \
75-
the query!"
76-
)]
77-
FailedToCoerce(#[source] mlua::Error),
78-
}
62+
7963
enum QuerySettingsDialogData {
8064
Closed,
8165
Open { settings_button_rect: Rect, position: Option<Pos2> },
@@ -162,7 +146,7 @@ impl SearchState {
162146
let start = Instant::now();
163147
let loaded: Result<Value, _> =
164148
lua.load(&*ta).set_name("search query").eval();
165-
info!("Thread {i} took {:?}", start.elapsed());
149+
info!(elapsed = ?start.elapsed(), "Thread {i} done");
166150
match loaded {
167151
Ok(x) => {
168152
let ids: Result<_, _> = Vec::from_lua(x, &lua)

0 commit comments

Comments
 (0)