vkeyboard: Use a generic slice instead of a vector

This commit is contained in:
Dorota Czaplejewicz
2020-09-28 16:32:15 +00:00
parent fea4ea7392
commit 8e2e8b0f5f

View File

@ -41,7 +41,7 @@ impl VirtualKeyboard {
// TODO: error out if keymap not set // TODO: error out if keymap not set
pub fn switch( pub fn switch(
&self, &self,
keycodes: &Vec<KeyCode>, keycodes: &[KeyCode],
action: PressType, action: PressType,
timestamp: Timestamp, timestamp: Timestamp,
) { ) {