5
0
mirror of git://git.proxmox.com/git/proxmox-fuse.git synced 2025-01-03 05:18:30 +03:00

make FuseBuf Send+Sync

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>
This commit is contained in:
Wolfgang Bumiller 2024-02-13 13:54:48 +01:00
parent f5fb03dcc9
commit 2ca2cbce67

View File

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