aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorTianhao Wang <wth@riseup.net>2024-01-30 02:33:26 +0100
committerTianhao Wang <wth@riseup.net>2024-01-30 02:33:26 +0100
commit5232a899ca7537a4493a7fbd1bd8e03287ff1e26 (patch)
tree87ded44101daa8832ad264996bde74160ab2db93 /src/lib.rs
parent553657a0b527ae8ce09ac628da6122fbdd57157b (diff)
formatting code, use tab identation -- before it's too late
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 9483130..04b51f1 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -7,22 +7,22 @@ use machine::cgascr::CGAScreen;
#[panic_handler]
fn panic(_info: &PanicInfo) -> ! {
- loop {}
+ loop {}
}
#[no_mangle]
pub extern "C" fn _entry() -> ! {
- let mut scr = CGAScreen::new();
- scr.show_coners();
- scr.setattr(0x1f);
- scr.clear();
- scr.show_coners();
+ let mut scr = CGAScreen::new();
+ scr.show_coners();
+ scr.setattr(0x1f);
+ scr.clear();
+ scr.show_coners();
- scr.print("--RuStuBs--\n");
- scr.print(" _._ _,-'\"\"`-._ ~Meow\n");
- scr.print(" (,-.`._,'( |\\`-/|\n");
- scr.print(" `-.-' \\ )-`( , o o)\n");
- scr.print(" `- \\`_`\"'-\n");
- scr.print("it works!\n");
- loop {}
+ scr.print("--RuStuBs--\n");
+ scr.print(" _._ _,-'\"\"`-._ ~Meow\n");
+ scr.print(" (,-.`._,'( |\\`-/|\n");
+ scr.print(" `-.-' \\ )-`( , o o)\n");
+ scr.print(" `- \\`_`\"'-\n");
+ scr.print("it works!\n");
+ loop {}
}