Skip to content

Incoming breakage: Remove unnecessary ?Sized bounds #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
6 changes: 3 additions & 3 deletions crates/cudarse/cudarse-driver/src/mem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ impl<T: ?Sized> Drop for CuBox<T> {
}

/// No guarantees this is used correctly. Beware of pinning multiple times.
pub struct CuPin<C: Deref<Target: ?Sized>>(C);
pub struct CuPin<C: Deref>(C);

impl<C: Deref<Target: ?Sized>> CuPin<C> {
impl<C: Deref> CuPin<C> {
pub fn new(data: C) -> CuResult<Self> {
Self::new_flags(data, 0)
}
Expand All @@ -195,7 +195,7 @@ impl<C: Deref<Target: ?Sized>> CuPin<C> {
}
}

impl<C: Deref<Target: ?Sized>> Drop for CuPin<C> {
impl<C: Deref> Drop for CuPin<C> {
fn drop(&mut self) {
self.drop_inner().unwrap()
}
Expand Down