oh just cargo fmt it all

This commit is contained in:
2026-10-06 20:58:16 +01:00
parent 37a6496906
commit d154b1e376
17 changed files with 119 additions and 116 deletions
+1 -5
View File
@@ -6,8 +6,6 @@ enum IpAddrKind {
V6,
}
// One might try to use an enum and a struct to give it types, like this:
#[derive(Debug)]
struct IpAddr {
@@ -22,7 +20,6 @@ enum IpAddrConcise {
V6(String),
}
pub fn run() {
println!("\n=== defining enums ===\n");
route(IpAddrKind::V4);
@@ -49,9 +46,8 @@ pub fn run() {
println!("the home address is {home:#?}");
println!("the loopback address is {loopback:#?}");
}
fn route (ip_kind: IpAddrKind) {
fn route(ip_kind: IpAddrKind) {
println!("your ip kind is {ip_kind:#?}");
}
+1 -1
View File
@@ -3,7 +3,7 @@ use crate::match_control_flow::UsState::Alabama;
#[derive(Debug)]
enum UsState {
Alabama,
Alaska
Alaska,
}
// Her we define a basic enum