write_fmt() method needed for write!() macro

Include `use core::fmt::Write;` in serial example.
This commit is contained in:
Michael Mogenson
2019-03-27 11:37:44 -04:00
parent 2e48356a55
commit d37d5726ce

View File

@@ -24,6 +24,7 @@ To read and write to the serial bus from your computer, you will need to configu
## Code ## Code
``` rust ``` rust
use core::fmt::Write;
use microbit::hal::prelude::*; use microbit::hal::prelude::*;
use microbit::hal::serial; use microbit::hal::serial;
use microbit::hal::serial::BAUD115200; use microbit::hal::serial::BAUD115200;