Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
aecsocket committed Jul 2, 2024
1 parent 4632742 commit 23c4dc4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/swipe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub async fn simulate(
grab: bool,
) -> Result<Never> {
info!("Creating virtual trackpad");
let (mut sink, mut sink_dev_nodes) = create_trackpad(resolution).await?;
let (mut sink, sink_dev_nodes) = create_trackpad(resolution).await?;
let mut state = State::default();
let mut devices = AHashMap::<PathBuf, EventStream>::new();

Expand All @@ -50,12 +50,12 @@ pub async fn simulate(
on_device_event(
event,
&mut sink,
&mut sink_dev_nodes,
&sink_dev_nodes,
input_allow,
input_deny,
&mut devices,
state
).await?
)?
}
Some((source_path, source, input)) = input_events.next() => {
on_input_event(
Expand Down Expand Up @@ -235,10 +235,10 @@ async fn collect_dev_nodes(device: &mut VirtualDevice) -> Result<Vec<PathBuf>> {
Ok(nodes)
}

async fn on_device_event(
fn on_device_event(
event: NotifyEvent,
sink: &mut VirtualDevice,
sink_dev_nodes: &mut Vec<PathBuf>,
sink_dev_nodes: &[PathBuf],
input_allow: &[PathBuf],
input_deny: &[PathBuf],
devices: &mut AHashMap<PathBuf, EventStream>,
Expand Down

0 comments on commit 23c4dc4

Please sign in to comment.