Skip to content

Commit 1e4e539

Browse files
author
DragonOS Dev
committed
fmt
1 parent 310c2bd commit 1e4e539

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

kernel/src/driver/serial/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ use crate::mm::VirtAddr;
88
use self::serial8250::serial8250_manager;
99

1010
use super::tty::{
11-
termios::{ControlMode, InputMode, LocalMode, OutputMode, Termios, INIT_C_LINE_ABI, INIT_CONTORL_CHARACTERS},
11+
termios::{
12+
ControlMode, InputMode, LocalMode, OutputMode, Termios, INIT_CONTORL_CHARACTERS,
13+
INIT_C_LINE_ABI,
14+
},
1215
tty_ldisc::LineDisciplineType,
1316
};
1417

kernel/src/driver/tty/termios.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,6 @@ bitflags! {
362362
}
363363
}
364364

365-
366-
367365
impl ControlMode {
368366
/// 获取波特率
369367
pub fn baud_rate(&self) -> Option<u32> {

0 commit comments

Comments
 (0)