Changed how TODO notes are marked to properly highlight in vim

This commit is contained in:
2023-04-09 23:01:21 +02:00
parent 1a9d12b1f3
commit 3613c2cbdf
14 changed files with 26 additions and 26 deletions

View File

@@ -22,7 +22,7 @@ impl GoogleHome {
}
pub fn handle_request(&self, request: Request, mut devices: &mut HashMap<&str, &mut dyn GoogleHomeDevice>) -> Result<Response, FullfillmentError> {
// @TODO What do we do if we actually get more then one thing in the input array, right now
// TODO: What do we do if we actually get more then one thing in the input array, right now
// we only respond to the first thing
let payload = request
.inputs
@@ -93,12 +93,12 @@ impl GoogleHome {
}
let results = command.execution.iter().map(|cmd| {
// @TODO We should also return the state after update in the state
// TODO: We should also return the state after update in the state
// struct, however that will make things WAY more complicated
device.execute(cmd)
}).collect::<Result<Vec<_>, ErrorCode>>();
// @TODO We only get one error not all errors
// TODO: We only get one error not all errors
if let Err(err) = results {
return (id, Err(err));
} else {

View File

@@ -99,6 +99,6 @@ mod tests {
println!("{}", json);
// @TODO Add a known correct output to test against
// TODO: Add a known correct output to test against
}
}

View File

@@ -87,6 +87,6 @@ mod tests {
println!("{}", json);
// @TODO Add a known correct output to test against
// TODO: Add a known correct output to test against
}
}

View File

@@ -19,7 +19,7 @@ pub trait OnOff: std::fmt::Debug {
None
}
// @TODO Implement correct error so we can handle them properly
// TODO: Implement correct error so we can handle them properly
fn is_on(&self) -> Result<bool, ErrorCode>;
fn set_on(&mut self, on: bool) -> Result<(), ErrorCode>;
}