adding workspace and clippy watnings
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
[package]
|
||||
name = "day6"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
authors.workspace = true
|
||||
repository.workspace = true
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
#![warn(clippy::all, clippy::pedantic)]
|
||||
|
||||
use std::collections::HashMap;
|
||||
use std::fs::File;
|
||||
use std::io::{prelude::*, BufReader};
|
||||
@@ -18,7 +20,7 @@ fn main() -> std::io::Result<()> {
|
||||
}
|
||||
holder.insert(c, true);
|
||||
}
|
||||
println!("Part 1: line: {} marker at: {}", line_no, i);
|
||||
println!("Part 1: line: {line_no} marker at: {i}");
|
||||
break;
|
||||
}
|
||||
'checker: for i in 14..line.len() {
|
||||
@@ -30,7 +32,7 @@ fn main() -> std::io::Result<()> {
|
||||
}
|
||||
holder.insert(c, true);
|
||||
}
|
||||
println!("Part 2: line: {} marker at: {}", line_no, i);
|
||||
println!("Part 2: line: {line_no} marker at: {i}");
|
||||
break;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user