Browse Source

fix(prototyper): eliminate compiler warning.

Signed-off-by: jackfiled <xcrenchangjun@outlook.com>
jackfiled 2 days ago
parent
commit
a389b6ad85
1 changed files with 1 additions and 1 deletions
  1. 1 1
      prototyper/prototyper/src/firmware/dynamic.rs

+ 1 - 1
prototyper/prototyper/src/firmware/dynamic.rs

@@ -117,7 +117,7 @@ pub struct DynamicError<'a> {
 /// Validates and extracts privilege mode and next address from dynamic info.
 ///
 /// Returns Result containing tuple of (MPP, next_addr) or error details.
-pub fn mpp_next_addr(info: &DynamicInfo) -> Result<(mstatus::MPP, usize), DynamicError> {
+pub fn mpp_next_addr(info: &DynamicInfo) -> Result<(mstatus::MPP, usize), DynamicError<'_>> {
     let mut error = DynamicError {
         invalid_mpp: false,
         invalid_next_addr: false,