Skip to content

Commit b175f41

Browse files
committed
handlers fixup
Signed-off-by: Doru Blânzeanu <[email protected]>
1 parent e550a84 commit b175f41

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/hyperlight_host/src/hypervisor/handlers.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ pub trait DbgMemAccessHandlerCaller: Send {
121121
/// are passed as parameters to functions
122122
///
123123
/// Note: This needs to be wrapped in a Mutex to be able to grab a mutable
124-
/// reference to the underlying data
124+
/// reference to the underlying data
125125
pub type DbgMemAccessHandlerWrapper = Arc<Mutex<dyn DbgMemAccessHandlerCaller>>;
126126

127127
pub(crate) type DbgReadMemAccessHandlerFunction =
@@ -130,12 +130,12 @@ pub(crate) type DbgWriteMemAccessHandlerFunction =
130130
Box<dyn FnMut(usize, &[u8]) -> Result<()> + Send>;
131131
pub(crate) type DbgGetCodeAddrHandlerFunction = Box<dyn FnMut() -> Result<usize> + Send>;
132132

133-
/// A `DbgMemAccessHandler` implementation using
133+
/// A `DbgMemAccessHandler` implementation using
134134
/// (`DbgReadMemAccessHandlerFunction`, `DbgWriteMemAccessHandlerFunction `, `DbgGetCodeAddrHandlerFunction `).
135135
///
136136
/// Note: This handler must live for as long as its Sandbox or for
137137
/// static in the case of its C API usage.
138-
pub(crate) struct DbgMemAccessHandler (
138+
pub(crate) struct DbgMemAccessHandler(
139139
Arc<Mutex<DbgReadMemAccessHandlerFunction>>,
140140
Arc<Mutex<DbgWriteMemAccessHandlerFunction>>,
141141
Arc<Mutex<DbgGetCodeAddrHandlerFunction>>,

0 commit comments

Comments
 (0)