From 79874839d34397ef16216ff37b98bc856ff4392a Mon Sep 17 00:00:00 2001 From: Tait Hoyem Date: Sat, 7 Sep 2024 11:11:45 -0600 Subject: [PATCH] Add instruction to add new command handler --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ced78a9..57b9af6 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -29,7 +29,7 @@ Here is what you need to know if you want to add a new feature: - Then, add it to the list of `.atspi_listener(fn_name)` calls in `main`. - The list of possible `Command`s can be found in the type `OdiliaCommand` enum in `common/src/commands.rs`. - [ ] If a new `Command` is required, create a newtype, implement the `IntoCommands` trait, add it as a variant to the enum, then finally implement the `CommandType` trait. - - To add funcionality to this command, create an `async fn` that takes `Command(NewCommandType)` and `NewStateType` (if necessary). + - To add funcionality to this command, create an `async fn` that takes `Command(NewCommandType)` and `NewStateType` (if necessary). Finally, add it to the list of `.command_listener(fn_name)` calls in `main`. ## Performance Benchmarking