Skip to content

Commit

Permalink
Fix static-api (remove () from OnNewBuffer)
Browse files Browse the repository at this point in the history
  • Loading branch information
elftausend committed Nov 26, 2023
1 parent fb2333c commit 8afb65b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ min-cl = { path="../min-cl", optional=true }

[features]
# default = ["cpu", "autograd", "macro"]
default = ["graph", "stack", "autograd", "cpu", "fork"]
default = ["graph", "stack", "autograd", "cpu", "fork", "static-api"]

cpu = []
opencl = ["dep:min-cl", "cpu", "cached"]
Expand Down
2 changes: 1 addition & 1 deletion src/static_api/to_device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ impl<'a, T: Clone> Buffer<'a, T> {
#[inline]
pub fn to_dev<D>(self) -> Buffer<'static, T, D, ()>
where
D: StaticDevice + Alloc<T> + OnNewBuffer<T, D, ()>,
D: StaticDevice + Alloc<T> + OnNewBuffer<T, D>
{
Buffer::from((D::as_static(), self.as_slice()))
}
Expand Down

0 comments on commit 8afb65b

Please sign in to comment.