Skip to content

Commit

Permalink
chore: do clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Decodetalkers committed Feb 10, 2025
1 parent 0854fa8 commit 142c60d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pipewirethread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,7 @@ fn start_stream(
let buf = unsafe { &mut *(*buffer).buffer };
let datas = unsafe { slice::from_raw_parts_mut(buf.datas, buf.n_datas as usize) };
for data in datas {
use std::ffi::CStr;
let name = unsafe { CStr::from_bytes_with_nul_unchecked(b"pipewire-screencopy\0") };
let name = c"pipewire-screencopy";
let fd = rustix::fs::memfd_create(name, rustix::fs::MemfdFlags::CLOEXEC).unwrap();
rustix::fs::ftruncate(&fd, (width * height * 4) as _).unwrap();

Expand Down

0 comments on commit 142c60d

Please sign in to comment.