Skip to content

Commit 99cfe9d

Browse files
committed
update to latest riscv crate
1 parent 073ec64 commit 99cfe9d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ license = "ISC"
1010
edition = "2018"
1111

1212
[dependencies]
13-
e310x-hal = "0.9.1"
14-
embedded-hal = "0.2.5"
15-
riscv = "0.6.0"
13+
e310x-hal = "0.9.3"
14+
embedded-hal = "0.2.7"
15+
riscv = "0.10.1"
1616
nb = "1.0.0"
1717

1818
[features]

src/stdout.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ pub fn configure<X, Y>(
5050
let serial = Serial::new(uart, (tx, rx), baud_rate, clocks);
5151
let (tx, rx) = serial.split();
5252

53-
interrupt::free(|_| unsafe {
53+
interrupt::free(|| unsafe {
5454
STDOUT.replace(SerialWrapper(tx));
5555
});
5656
rx
5757
}
5858

5959
/// Writes string to stdout
6060
pub fn write_str(s: &str) {
61-
interrupt::free(|_| unsafe {
61+
interrupt::free(|| unsafe {
6262
if let Some(stdout) = STDOUT.as_mut() {
6363
let _ = stdout.write_str(s);
6464
}
@@ -67,7 +67,7 @@ pub fn write_str(s: &str) {
6767

6868
/// Writes formatted string to stdout
6969
pub fn write_fmt(args: fmt::Arguments) {
70-
interrupt::free(|_| unsafe {
70+
interrupt::free(|| unsafe {
7171
if let Some(stdout) = STDOUT.as_mut() {
7272
let _ = stdout.write_fmt(args);
7373
}

0 commit comments

Comments
 (0)