Skip to content

Commit

Permalink
add more tasks for other feature sets
Browse files Browse the repository at this point in the history
  • Loading branch information
callmeclover committed May 15, 2024
1 parent 7a018ac commit 7e96293
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,11 @@ jobs:
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- run: cargo clippy --features advanced,invisibility
- 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
2 changes: 1 addition & 1 deletion src/func.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 7e96293

Please sign in to comment.