Compare commits

..

No commits in common. "61ef345ff38ba1597f3e0a962668fa3c7924062e" and "cd250ddd352748660bcfd2ad79a91ed3595246d7" have entirely different histories.

6 changed files with 9 additions and 25 deletions

20
.gitignore vendored
View File

@ -1,19 +1,11 @@
# IDE Config folders
**/.vscode
**/.idea
.vs/
# Java compilation output?
**/debug/
**/target/
**/*rs.bk
**/.vsidx
**/.suo
# C# compilation output
debug/
bin/
obj/
# The game inputs will be in .txt
**/obj
**/bin
**/.vs
*.txt
# Cargo compilation output
debug/
target/
# Rust fmt stuff
**/*.rs.bk

View File

@ -1,8 +0,0 @@
mod day1;
fn main() {
day1::run_day1()
}

View File

@ -3,5 +3,5 @@
version = 3
[[package]]
name = "advent_of_code"
name = "day1"
version = "0.1.0"

View File

@ -1,5 +1,5 @@
[package]
name = "advent_of_code"
name = "day1"
version = "0.1.0"
edition = "2021"

View File

@ -1,6 +1,6 @@
use std::fs;
pub fn run_day1(){
fn main() {
let contents = fs::read_to_string("input.txt").expect("Could not read the file");
let first_total_calibration_value = first_impl(&contents);