From dbcbc8472543d5c5b24bf6ce281637a9a8a70098 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Tue, 19 Feb 2019 11:28:28 +0000 Subject: Refactor Command::execute_raw into execute The execute_raw method does not have to be part of the Command trait. In order to simplify the Command trait and to make future changes easier, we remove the execute_raw method and replace it with the execute function. --- src/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util.rs') diff --git a/src/util.rs b/src/util.rs index 9325e9e..c83d3f3 100644 --- a/src/util.rs +++ b/src/util.rs @@ -24,7 +24,7 @@ macro_rules! enum_cmd { pub fn execute(&self, data: &[u8], buf: &mut [u8]) -> CommandStatus { match *self { $( - $name::$var => $cmd::execute_raw(data, buf), + $name::$var => crate::commands::execute::<$cmd>(data, buf), )* } } -- cgit v1.2.1