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),