Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 1 addition & 14 deletions libs/@local/graph/api/src/rest/entity_query_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ use hashql_diagnostics::{
DiagnosticIssues, Failure, Severity, Status, StatusExt as _, Success,
category::{DiagnosticCategory, canonical_category_id},
diagnostic::render::{Format, RenderOptions},
severity::Critical,
source::{DiagnosticSpan, Source, SourceId, Sources},
};
use hashql_eval::{
Expand Down Expand Up @@ -340,19 +339,7 @@ impl<'q> EntityQuery<'q> {
let mut ast = parser
.parse_expr(query.get().as_bytes())
.map_err(|diagnostic| {
Failure::new(
diagnostic
.map_category(HashQLDiagnosticCategory::JExpr)
.map_severity(|severity| {
Critical::try_new(severity).unwrap_or_else(|| {
tracing::error!(
?severity,
"JExpr returned an error of non-critical severity"
);
Critical::ERROR
})
}),
)
Failure::new(diagnostic.map_category(HashQLDiagnosticCategory::JExpr))
})?;

let mut env = Environment::new(heap);
Expand Down
1 change: 1 addition & 0 deletions libs/@local/hashql/compiletest/src/pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ impl<'heap> Pipeline<'heap> {

parser
.parse_expr(content.as_ref())
.map_err(Diagnostic::generalize)
.map_err(Diagnostic::boxed)
}

Expand Down
2 changes: 1 addition & 1 deletion libs/@local/hashql/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ lexical = { workspace = true, features = ["parse-integers", "parse-
memchr = { workspace = true }
rapidfuzz = { workspace = true }
roaring = { workspace = true, features = ["std"] }
rpds = { workspace = true, features = ["std"] }
rpds = { workspace = true }
serde = { workspace = true, optional = true, features = ["alloc", "derive"] }
simple-mermaid = { workspace = true }
tracing = { workspace = true }
Expand Down
1 change: 1 addition & 0 deletions libs/@local/hashql/core/src/collections/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ where
/// let pool = VecPool::<i32>::new(15);
/// assert_eq!(pool.capacity(), 15);
/// ```
#[inline]
pub const fn capacity(&self) -> usize {
self.capacity
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ where
}

/// Returns the underlying [`RowRef`] if the frontier is non-empty.
#[inline]
#[must_use]
pub const fn as_inner(&self) -> Option<RowRef<'_, N>> {
self.inner
Expand Down
3 changes: 2 additions & 1 deletion libs/@local/hashql/core/src/heap/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ pub use self::{
clone::{CloneIn, TryCloneIn},
convert::{FromIn, IntoIn},
iter::{CollectIn, FromIteratorIn},
pool::{ScratchPool, ScratchPoolGuard},
pool::{HeapPool, HeapPoolGuard, ScratchPool, ScratchPoolGuard},
scratch::Scratch,
transfer::TransferInto,
};
Expand Down Expand Up @@ -288,6 +288,7 @@ impl Heap {
}

impl Default for Heap {
#[inline]
fn default() -> Self {
Self::new()
}
Expand Down
Loading
Loading