commands: add some TODOs for assumptions made about syntax
This commit is contained in:
parent
6a9cd00275
commit
86183e56ad
@ -17,12 +17,13 @@ impl Command for ProtocolDisable {
|
||||
return Err(RequestParserError::UnexpectedEOF);
|
||||
}
|
||||
|
||||
let mut protocols = Vec::new();
|
||||
for protocol in parts {
|
||||
protocols.push(protocol.to_string());
|
||||
// TODO: verify that the features are split by whitespace
|
||||
let mut features = Vec::new();
|
||||
for feature in parts {
|
||||
features.push(feature.to_string());
|
||||
}
|
||||
|
||||
Ok((Request::ProtocolDisable(protocols), ""))
|
||||
Ok((Request::ProtocolDisable(features), ""))
|
||||
}
|
||||
|
||||
fn parse_response(
|
||||
|
@ -17,12 +17,13 @@ impl Command for ProtocolEnable {
|
||||
return Err(RequestParserError::UnexpectedEOF);
|
||||
}
|
||||
|
||||
let mut protocols = Vec::new();
|
||||
for protocol in parts {
|
||||
protocols.push(protocol.to_string());
|
||||
// TODO: verify that the features are split by whitespace
|
||||
let mut features = Vec::new();
|
||||
for feature in parts {
|
||||
features.push(feature.to_string());
|
||||
}
|
||||
|
||||
Ok((Request::ProtocolEnable(protocols), ""))
|
||||
Ok((Request::ProtocolEnable(features), ""))
|
||||
}
|
||||
|
||||
fn parse_response(
|
||||
|
@ -17,6 +17,7 @@ impl Command for TagTypesDisable {
|
||||
return Err(RequestParserError::UnexpectedEOF);
|
||||
}
|
||||
|
||||
// TODO: verify that the tag types are split by whitespace
|
||||
let mut tag_types = Vec::new();
|
||||
for tag_type in parts {
|
||||
tag_types.push(tag_type.to_string());
|
||||
|
@ -17,6 +17,7 @@ impl Command for TagTypesEnable {
|
||||
return Err(RequestParserError::UnexpectedEOF);
|
||||
}
|
||||
|
||||
// TODO: verify that the tag types are split by whitespace
|
||||
let mut tag_types = Vec::new();
|
||||
for tag_type in parts {
|
||||
tag_types.push(tag_type.to_string());
|
||||
|
@ -17,6 +17,7 @@ impl Command for TagTypesReset {
|
||||
return Err(RequestParserError::UnexpectedEOF);
|
||||
}
|
||||
|
||||
// TODO: verify that the tag types are split by whitespace
|
||||
let mut tag_types = Vec::new();
|
||||
for tag_type in parts {
|
||||
tag_types.push(tag_type.to_string());
|
||||
|
Loading…
Reference in New Issue
Block a user