feat: revamp structure

This commit is contained in:
Muhammad Nauman Raza 2024-10-21 12:31:39 +01:00
parent 750c5fc49b
commit 90570ab3e1
Signed by: devraza
GPG key ID: 91EAD6081011574B
3 changed files with 4 additions and 2 deletions

2
.gitignore vendored
View file

@ -1,5 +1,5 @@
# Ignore user file # Ignore user file
nurse/nurse.txt nurse.txt
# Added by cargo # Added by cargo
nurse/target nurse/target

2
justfile Normal file
View file

@ -0,0 +1,2 @@
run:
nix-shell --command "cd nurse && cargo run"

View file

@ -3,7 +3,7 @@ use std::fs;
use std::process::Command; use std::process::Command;
fn main() -> std::io::Result<()> { fn main() -> std::io::Result<()> {
let file: Vec<String> = fs::read_to_string("nurse.txt") let file: Vec<String> = fs::read_to_string("../nurse.txt")
.unwrap() .unwrap()
.lines() .lines()
.map(String::from) .map(String::from)