From 7e96293af0a045e1e15661c7daf03bdf8a32c9dd Mon Sep 17 00:00:00 2001 From: Clover Johnson <95094165+callmeclover@users.noreply.github.com> Date: Wed, 15 May 2024 12:00:14 -0400 Subject: [PATCH] add more tasks for other feature sets --- .github/workflows/clippy.yml | 9 ++++++++- src/func.rs | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/clippy.yml b/.github/workflows/clippy.yml index 28ad917..f0b7db2 100644 --- a/.github/workflows/clippy.yml +++ b/.github/workflows/clippy.yml @@ -9,4 +9,11 @@ jobs: - uses: dtolnay/rust-toolchain@stable with: toolchain: stable - - run: cargo clippy --features advanced,invisibility \ No newline at end of file + - name: clippy + run: cargo clippy + - name: clippy adv + run: cargo clippy --features advanced + - name: clippy inv + run: cargo clippy --features invisibility + - name: clippy adv,inv + run: cargo clippy --features advanced,invisibility \ No newline at end of file diff --git a/src/func.rs b/src/func.rs index 8684c3e..3f47ccc 100644 --- a/src/func.rs +++ b/src/func.rs @@ -272,7 +272,7 @@ pub async fn main_logic(options: &[(&str, usize)], tts: &mut Tts, enigo: &mut En WeightedIndex::new(options.iter().map(|item| item.1)).unwrap(); match options[index.sample(&mut rng)].0 { "keyboard" => keyboard(enigo, &mut rng), - "gamepad" => gamepad(&mut gamepadobj.unwrap(), &mut rng), + "gamepad" => gamepad(&mut gamepadobj.unwrap().as_mut(), &mut rng), "mouse" => mouse(enigo, &mut rng), "quote" => quote(tts, &mut rng), "screenshot" => screenshot(tts),