Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f222d73

Browse files
Fix clippy
1 parent 2cd44c3 commit f222d73

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎19_kernel_heap/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ diff -uNr 18_backtrace/kernel/src/console.rs 19_kernel_heap/kernel/src/console.r
828828
+
829829
+ static FIRST_SWITCH: InitStateLock<bool> = InitStateLock::new(true);
830830
+ FIRST_SWITCH.write(|first| {
831-
+ if *first == true {
831+
+ if *first {
832832
+ *first = false;
833833
+
834834
+ buffer_console::BUFFER_CONSOLE.dump();

‎19_kernel_heap/kernel/src/console.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ pub fn register_console(new_console: &'static (dyn interface::All + Sync)) {
7777

7878
static FIRST_SWITCH: InitStateLock<bool> = InitStateLock::new(true);
7979
FIRST_SWITCH.write(|first| {
80-
if *first == true{
80+
if *first {
8181
*first = false;
8282

8383
buffer_console::BUFFER_CONSOLE.dump();

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /