Skip to content

Commit 3918fbd

Browse files
committed
chore: clone into properly
1 parent a2e9e98 commit 3918fbd

File tree

5 files changed

+40
-54
lines changed

5 files changed

+40
-54
lines changed

Cargo.lock

Lines changed: 31 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ futures-util = { version = "0.3.31", default-features = fa
148148
glob = { version = "0.3.3" }
149149
globset = { version = "0.4.18", default-features = false }
150150
guppy = { version = "0.17.20", default-features = false }
151-
hashbrown = { version = "0.16.0", default-features = false, features = ["inline-more", "nightly"] }
151+
hashbrown = { version = "0.16.0", default-features = false, features = ["inline-more", "nightly", "raw-entry"] }
152152
hifijson = { version = "0.4.0", default-features = false }
153153
http = { version = "1.3.1", default-features = false }
154154
humansize = { version = "2.1.3", default-features = false }
@@ -191,7 +191,7 @@ opentelemetry-otlp = { version = "0.30.0", default-features = fa
191191
opentelemetry-semantic-conventions = { version = "0.30.0", default-features = false }
192192
opentelemetry_sdk = { version = "0.30.0", default-features = false }
193193
owo-colors = { version = "4.2.3", default-features = false }
194-
oxc = { version = "0.103.0", default-features = false }
194+
oxc = { version = "0.95.0", default-features = false }
195195
pin-project = { version = "1.1.10", default-features = false }
196196
pin-project-lite = { version = "0.2.16", default-features = false }
197197
postgres-protocol = { version = "0.6.9", default-features = false }
@@ -386,3 +386,4 @@ ignored = ["futures-core", "futures-io", "futures-sink"]
386386

387387
[patch.crates-io]
388388
specta = { git = "https://github.com/specta-rs/specta", rev = "ab7d924" }
389+
oxc = { git = "https://github.com/hashdeps/oxc", rev = "73c781b" }

libs/@local/hashql/core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ hashql-diagnostics = { workspace = true, public = true }
1414
# Public third-party dependencies
1515
anstyle = { workspace = true, public = true }
1616
foldhash = { workspace = true, public = true }
17-
hashbrown = { workspace = true, public = true, features = ["raw-entry"] }
17+
hashbrown = { workspace = true, public = true }
1818
pretty = { workspace = true, public = true }
1919
smallvec = { workspace = true, public = true }
2020
text-size = { workspace = true, public = true }

libs/@local/hashql/core/src/heap/clone.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ impl<T: Clone, A: Allocator, B: Allocator> TryCloneIn<A> for Vec<T, B> {
104104

105105
#[inline]
106106
fn try_clone_into(&self, into: &mut Self::Cloned, _: A) -> Result<(), AllocError> {
107-
into.clone_from_slice(self);
107+
into.clear();
108+
into.extend_from_slice(self);
108109
Ok(())
109110
}
110111
}

libs/@local/hashql/core/src/heap/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,19 +121,19 @@ use crate::{
121121
/// A boxed value allocated on the `Heap`.
122122
///
123123
/// This type should always be used with the `heap::` prefix to avoid confusion
124-
/// with the standard library [`Box`](alloc::boxed::Box) type.
124+
/// with the standard library [`Box`](::alloc::boxed::Box) type.
125125
pub type Box<'heap, T> = boxed::Box<T, &'heap Heap>;
126126

127127
/// A vector allocated on the `Heap`.
128128
///
129129
/// This type should always be used with the `heap::` prefix to avoid confusion
130-
/// with the standard library [`Vec`](alloc::vec::Vec) type.
130+
/// with the standard library [`Vec`](::alloc::vec::Vec) type.
131131
pub type Vec<'heap, T> = vec::Vec<T, &'heap Heap>;
132132

133133
/// A double-ended queue allocated on the `Heap`.
134134
///
135135
/// This type should always be used with the `heap::` prefix to avoid confusion
136-
/// with the standard library [`VecDeque`](alloc::collections::vec_deque::VecDeque) type.
136+
/// with the standard library [`VecDeque`](::alloc::collections::vec_deque::VecDeque) type.
137137
pub type VecDeque<'heap, T> = vec_deque::VecDeque<T, &'heap Heap>;
138138

139139
/// A hash map allocated on the `Heap` with an optional custom hasher.

0 commit comments

Comments
 (0)