Skip to content

Commit b94fb18

Browse files
memory_get_region can't fail - return an Option.
1 parent 06ea4b6 commit b94fb18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ pub struct Api {
301301
/// (if any), or from the top of Region 0 (although this reduces the maximum
302302
/// application space available). The OS will prefer lower numbered regions
303303
/// (other than Region 0), so faster memory should be listed first.
304-
pub memory_get_region: extern "C" fn(region_index: u8) -> crate::Result<types::MemoryRegion>,
304+
pub memory_get_region: extern "C" fn(region_index: u8) -> crate::Option<types::MemoryRegion>,
305305

306306
// ========================================================================
307307
// Human Interface Device Support

0 commit comments

Comments
 (0)