Skip to content

Commit

Permalink
Fix clippy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Others committed Aug 29, 2020
1 parent 40d981b commit 7e3eac2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/collector/alloc.rs
Expand Up @@ -164,8 +164,8 @@ impl GcAllocation {
}

#[cfg(test)]
pub(crate) unsafe fn raw(v: *const dyn Scan) -> GcAllocation {
GcAllocation {
pub(crate) unsafe fn raw(v: *const dyn Scan) -> Self {
Self {
scan_ptr: v,
deallocation_action: DeallocationAction::DoNothing,
}
Expand Down
2 changes: 2 additions & 0 deletions src/collector/dropper.rs
Expand Up @@ -12,7 +12,9 @@ pub(crate) struct BackgroundDropper {
}

pub(crate) enum DropMessage {
/// Signals the `BackgroundDropper` to deallocate the following data (possibly running some destructor)
DataToDrop(Arc<GcData>),
/// Indicates to the `BackgroundDropper` that it should sync up with the calling code
SyncUp(Sender<()>),
}

Expand Down

0 comments on commit 7e3eac2

Please sign in to comment.