]> git.proxmox.com Git - proxmox-fuse.git/commitdiff
make FuseBuf Send+Sync
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 13 Feb 2024 12:54:48 +0000 (13:54 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 13 Feb 2024 12:57:04 +0000 (13:57 +0100)
It is - and as it is also used as an Arc and clippy warns about it.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/sys.rs

index b13bc90c050f3fdefbe27363a97be08f529c4dbb..38be724d0928e4fd417f7efe8581d7389de893e1 100644 (file)
@@ -208,6 +208,9 @@ pub struct FuseBuf {
     pos: off_t,
 }
 
+unsafe impl Send for FuseBuf {}
+unsafe impl Sync for FuseBuf {}
+
 impl Drop for FuseBuf {
     fn drop(&mut self) {
         unsafe {