From 7015538b43449230969747e149916a5ad127c559 Mon Sep 17 00:00:00 2001 From: Egor Savkin Date: Wed, 22 Mar 2023 17:28:47 +0800 Subject: [PATCH] Clean up endings in commands Signed-off-by: Egor Savkin --- src/command_parser.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/command_parser.rs b/src/command_parser.rs index acd3bae..fa8d798 100644 --- a/src/command_parser.rs +++ b/src/command_parser.rs @@ -343,7 +343,6 @@ fn pwm(input: &[u8]) -> IResult<&[u8], Result> { } }, ))(input)?; - end(input)?; Ok((input, result)) }, value(Ok(Command::Show(ShowCommand::Pwm)), end) @@ -362,7 +361,6 @@ fn center_point(input: &[u8]) -> IResult<&[u8], Result> { Ok((input, value.map(|value| CenterPoint::Override(value as f32)))) } ))(input)?; - end(input)?; Ok((input, center.map(|center| Command::CenterPoint { channel, center, @@ -465,7 +463,6 @@ fn load(input: &[u8]) -> IResult<&[u8], Result> { |input| { let (input, _) = whitespace(input)?; let (input, channel) = channel(input)?; - let (input, _) = end(input)?; Ok((input, Some(channel))) }, value(None, end) @@ -481,7 +478,6 @@ fn save(input: &[u8]) -> IResult<&[u8], Result> { |input| { let (input, _) = whitespace(input)?; let (input, channel) = channel(input)?; - let (input, _) = end(input)?; Ok((input, Some(channel))) }, value(None, end)