automatic cargo CI changes
This commit is contained in:
parent
23f64e119c
commit
b4006d7d90
|
@ -1,11 +1,13 @@
|
||||||
use std::{io::Write, panic};
|
use std::panic;
|
||||||
fn inner() {
|
fn inner() {
|
||||||
let mut counter = 0u8;
|
let mut counter = 0u8;
|
||||||
loop {
|
loop {
|
||||||
// will eventually panic when overflowing?
|
// will eventually panic when overflowing?
|
||||||
counter += 1;
|
counter += 1;
|
||||||
print!("{counter}\t");
|
print!("{counter}\t");
|
||||||
if counter % 8 == 0 { println!() }
|
if counter % 8 == 0 {
|
||||||
|
println!()
|
||||||
|
}
|
||||||
if counter == 255 {
|
if counter == 255 {
|
||||||
// so panic will look fancier :)
|
// so panic will look fancier :)
|
||||||
println!()
|
println!()
|
||||||
|
@ -22,6 +24,7 @@ fn main() {
|
||||||
dbg!(&panic);
|
dbg!(&panic);
|
||||||
dbg!(&panic.as_ref().unwrap_err().type_id());
|
dbg!(&panic.as_ref().unwrap_err().type_id());
|
||||||
println!("recovered from a panic");
|
println!("recovered from a panic");
|
||||||
|
} else {
|
||||||
|
println!("no panic on the titanic")
|
||||||
}
|
}
|
||||||
else {println!("no panic on the titanic")}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue