Skip to content

Commit 9095d32

Browse files
committed
chore(deps): upgrade inline_dyn to ^0.2
`inline_dyn` has been [updated][1] to use const generics to specify the size and alignment. [1]: johnschug/inline_dyn@e95e16b
1 parent 0998f08 commit 9095d32

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/r3_support_rp2040/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ r3 = { workspace = true }
3030

3131
embedded-hal = { version = "0.2.4", optional = true }
3232
usbd-serial = { version = "0.1.1", optional = true }
33-
inline_dyn = { version = "0.1.1", optional = true }
33+
inline_dyn = { version = "0.2.0", optional = true }
3434
rp2040-pac = { version = "0.3.0" }
3535
usb-device = { version = "0.2.7", optional = true }
3636
cortex-m = { version = "0.7.3", optional = true }

src/r3_support_rp2040/src/stdout.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use nb::block;
1313

1414
pub fn set_stdout(writer: impl SerialWrite) {
1515
interrupt::free(|cs| {
16-
*STDOUT.borrow(cs).borrow_mut() = Some(inline_dyn![SerialWrite; writer].ok().unwrap());
16+
*STDOUT.borrow(cs).borrow_mut() = Some(inline_dyn![SerialWrite; writer]);
1717
});
1818
}
1919

@@ -26,7 +26,7 @@ impl<T> SerialWrite for T where
2626
{
2727
}
2828

29-
type InlineDynWrite = InlineDyn<'static, dyn SerialWrite>;
29+
type InlineDynWrite = InlineDyn<dyn SerialWrite>;
3030

3131
static STDOUT: interrupt::Mutex<RefCell<Option<InlineDynWrite>>> =
3232
interrupt::Mutex::new(RefCell::new(None));

0 commit comments

Comments
 (0)