Skip to content

Commit

Permalink
Remove unsafe in example, remove todo from bc
Browse files Browse the repository at this point in the history
  • Loading branch information
elftausend committed Nov 17, 2024
1 parent 2bb7672 commit 2712285
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/custom_module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ where
S: Shape,
{
#[inline]
unsafe fn retrieve_entry<const NUM_PARENTS: usize>(
fn retrieve_entry<const NUM_PARENTS: usize>(
&'a self,
device: &D,
len: usize,
Expand Down Expand Up @@ -104,7 +104,7 @@ where
self.mods.on_retrieve_finish(len, parents, retrieved_buf)
}

unsafe fn retrieve<const NUM_PARENTS: usize>(
fn retrieve<const NUM_PARENTS: usize>(
&self,
device: &D,
len: usize,
Expand Down
3 changes: 1 addition & 2 deletions src/cache/borrow_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,7 @@ impl BorrowCache {
D: Alloc<T> + 'static,
S: Shape,
{
todo!()
// self.cache.get(&id)?.downcast_ref()
self.get_buf(_dev, id).ok()
}

#[inline]
Expand Down

0 comments on commit 2712285

Please sign in to comment.