Skip to content

Commit

Permalink
NvList type is Send
Browse files Browse the repository at this point in the history
The NvList type can be safely sent to other threads.  Mark it as such by
implementing `Send`.
  • Loading branch information
ahrens committed Sep 21, 2021
1 parent 42bbed3 commit 6e7ddfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nvpair/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ impl NvEncoding {

foreign_type! {
/// An `NvList`
pub unsafe type NvList {
pub unsafe type NvList: Send {
type CType = sys::nvlist;
fn drop = sys::nvlist_free;
}
Expand Down

0 comments on commit 6e7ddfa

Please sign in to comment.