Skip to content

Commit

Permalink
slight syntax changes to clean things up
Browse files Browse the repository at this point in the history
  • Loading branch information
Athryx committed Mar 7, 2024
1 parent 1da2199 commit b76b6b8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -387,3 +387,5 @@ secret_db.sqlite
design_utils/Cargo.lock
deployment/Cargo.lock
max78000_hal/Cargo.lock

macro_test/
4 changes: 2 additions & 2 deletions application_processor/src/attest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ fn perform_attest(driver: &mut ApDriver) -> Result<(), ApError> {
let req = AttestationReqMessage {
component_id,
nonce,
hmac
hmac,
};

// TODO: maybe have this response contain the component id and refuse to print if component id is wrong
Expand Down Expand Up @@ -65,7 +65,7 @@ fn attempt_attest(driver: &mut ApDriver) -> Result<(), ApError> {
fn(&mut ApDriver) -> Result<(), ApError>,
perform_attest,
(driver,),
{ return Err(ApError::InvalidInput) },
Err(ApError::InvalidInput),
driver.get_chacha(),
)
}
Expand Down
2 changes: 1 addition & 1 deletion application_processor/src/replace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ fn attempt_replace(driver: &mut ApDriver) -> Result<(), ApError> {
fn(&mut ApDriver) -> Result<(), ApError>,
perform_replace,
(driver,),
{ return Err(ApError::InvalidInput) },
Err(ApError::InvalidInput),
driver.get_chacha(),
)
}
Expand Down

0 comments on commit b76b6b8

Please sign in to comment.