Skip to content

Commit 06c2223

Browse files
committed
Formatting
1 parent 8676bb6 commit 06c2223

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/main.rs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,10 @@ extern "C" fn serial_get_info(_device: u8) -> common::FfiOption<common::serial::
802802

803803
/// Set the options for a given serial device. An error is returned if the
804804
/// options are invalid for that serial device.
805-
extern "C" fn serial_configure(_device: u8, _config: common::serial::Config) -> common::ApiResult<()> {
805+
extern "C" fn serial_configure(
806+
_device: u8,
807+
_config: common::serial::Config,
808+
) -> common::ApiResult<()> {
806809
debug!("serial_configure()");
807810
Err(common::Error::Unimplemented).into()
808811
}
@@ -909,7 +912,7 @@ extern "C" fn video_is_valid_mode(mode: common::video::Mode) -> bool {
909912
/// `video_get_framebuffer` will return `null`. You must then supply a
910913
/// pointer to a block of size `Mode::frame_size_bytes()` to
911914
/// `video_set_framebuffer` before any video will appear.
912-
extern "C" fn video_set_mode(mode: common::video::Mode) -> common::Result<()> {
915+
extern "C" fn video_set_mode(mode: common::video::Mode) -> common::ApiResult<()> {
913916
info!("video_set_mode({:?})", mode);
914917
match mode.timing() {
915918
common::video::Timing::T640x480 => {
@@ -986,7 +989,7 @@ extern "C" fn video_get_framebuffer() -> *mut u8 {
986989
///
987990
/// The pointer must point to enough video memory to handle the current video
988991
/// mode, and any future video mode you set.
989-
unsafe extern "C" fn video_set_framebuffer(_buffer: *const u8) -> common::Result<()> {
992+
unsafe extern "C" fn video_set_framebuffer(_buffer: *const u8) -> common::ApiResult<()> {
990993
Err(common::Error::Unimplemented).into()
991994
}
992995

@@ -1277,7 +1280,10 @@ extern "C" fn audio_mixer_channel_get_info(
12771280
common::FfiOption::None
12781281
}
12791282

1280-
extern "C" fn audio_mixer_channel_set_level(_audio_mixer_id: u8, _level: u8) -> common::ApiResult<()> {
1283+
extern "C" fn audio_mixer_channel_set_level(
1284+
_audio_mixer_id: u8,
1285+
_level: u8,
1286+
) -> common::ApiResult<()> {
12811287
debug!("audio_mixer_channel_set_level");
12821288
common::ApiResult::Err(common::Error::Unimplemented)
12831289
}

0 commit comments

Comments
 (0)