diff options
author | Matthew Ahrens <mahrens@delphix.com> | 2021-09-21 10:03:23 -0700 |
---|---|---|
committer | Matthew Ahrens <mahrens@delphix.com> | 2021-09-21 10:24:44 -0700 |
commit | 6e7ddfa073a25abf33a89d001580160465070251 (patch) | |
tree | 25eb9114e635495dc1d3206dfd53d79466007ec7 | |
parent | 42bbed304a30a32eec5eab3fb51155c6aab7275b (diff) | |
download | rust-libzfs-6e7ddfa073a25abf33a89d001580160465070251.zip |
NvList type is Send
The NvList type can be safely sent to other threads. Mark it as such by
implementing `Send`.
-rw-r--r-- | nvpair/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nvpair/src/lib.rs b/nvpair/src/lib.rs index b98849d..a34d2bf 100644 --- a/nvpair/src/lib.rs +++ b/nvpair/src/lib.rs @@ -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; } |