Skip to content

Commit 4dc63f6

Browse files
committed
minor changes
1 parent eade038 commit 4dc63f6

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.github/workflows/riscv-semihosting.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
on:
22
push:
3-
branches: [ master, semihosting ]
3+
branches: [ master ]
44
pull_request:
55
merge_group:
66

riscv-semihosting/src/export.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use crate::hio::{self, HostStream};
44
use core::fmt::{self, Write};
55

66
static mut HSTDOUT: Option<HostStream> = None;
7-
87
static mut HSTDERR: Option<HostStream> = None;
98

109
#[cfg(not(feature = "u-mode"))]
@@ -57,6 +56,7 @@ pub use machine::*;
5756
#[cfg(feature = "u-mode")]
5857
mod user {
5958
use super::*;
59+
6060
pub fn hstdout_str(s: &str) {
6161
let _result = unsafe {
6262
if HSTDOUT.is_none() {
@@ -77,8 +77,6 @@ mod user {
7777
};
7878
}
7979

80-
static mut HSTDERR: Option<HostStream> = None;
81-
8280
pub fn hstderr_str(s: &str) {
8381
let _result = unsafe {
8482
if HSTDERR.is_none() {

0 commit comments

Comments
 (0)