Remove unnecessary casting

This commit is contained in:
julianbraha 2024-09-03 12:35:39 +01:00 committed by Victoria Brekenfeld
parent 48ae9a2a33
commit 52280e9823
6 changed files with 14 additions and 14 deletions

View file

@ -80,10 +80,10 @@ where
if matches!(buffer_type(&buffer), Some(BufferType::Shm)) {
let buffer_size = buffer_dimensions(&buffer).unwrap();
if let Err(err) = with_buffer_contents_mut(&buffer, |ptr, len, data| {
let offset = data.offset as i32;
let width = data.width as i32;
let height = data.height as i32;
let stride = data.stride as i32;
let offset = data.offset;
let width = data.width;
let height = data.height;
let stride = data.stride;
let format = shm_format_to_fourcc(data.format)
.expect("We should be able to convert all hardcoded shm screencopy formats");

View file

@ -55,7 +55,7 @@ impl ToplevelManagementHandler for State {
let res = shell.activate(
&output,
idx as usize,
idx,
WorkspaceDelta::new_shortcut(),
&mut self.common.workspace_state.update(),
);