Skip to content

Commit 92b1ca7

Browse files
committed
fmt-apply
Signed-off-by: adamperlin <[email protected]>
1 parent 1732dce commit 92b1ca7

File tree

1 file changed

+4
-5
lines changed
  • src/hyperlight_guest_bin/src

1 file changed

+4
-5
lines changed

src/hyperlight_guest_bin/src/lib.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,9 @@ fn panic(info: &core::panic::PanicInfo) -> ! {
143143
}
144144

145145
/// A writer that sends all output to the hyperlight host
146-
/// using output ports. This allows us to not impose a
146+
/// using output ports. This allows us to not impose a
147147
/// buffering limit on error message size on the guest end,
148-
/// though one exists for the host.
148+
/// though one exists for the host.
149149
struct HyperlightAbortWriter;
150150
impl core::fmt::Write for HyperlightAbortWriter {
151151
fn write_str(&mut self, s: &str) -> core::fmt::Result {
@@ -158,12 +158,11 @@ impl core::fmt::Write for HyperlightAbortWriter {
158158

159159
#[inline(always)]
160160
fn _panic_handler(info: &core::panic::PanicInfo) -> ! {
161-
let mut w = HyperlightAbortWriter;
161+
let mut w = HyperlightAbortWriter;
162162

163163
// begin abort sequence by writing the error code
164164
unsafe {
165-
write_abort(
166-
&[ErrorCode::UnknownError as u8]);
165+
write_abort(&[ErrorCode::UnknownError as u8]);
167166
}
168167

169168
let write_res = write!(w, "{}", info);

0 commit comments

Comments
 (0)