From 9e335ab0a7cc9830deb105381720425c002f1d96 Mon Sep 17 00:00:00 2001 From: Denis-Cosmin NUTIU Date: Thu, 24 Oct 2024 17:25:47 +0300 Subject: [PATCH] remove hardcoded paths --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 0fc40e3..593192b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -28,9 +28,9 @@ fn get_differences(left_text: &String, right_text: &String) -> Vec { fn main() { let left_file = - read_to_string("/Users/dnutiu/RustroverProjects/ndiff/a.txt").expect("Left file not found"); + read_to_string("a.txt").expect("Left file not found"); let right_file = - read_to_string("/Users/dnutiu/RustroverProjects/ndiff/b.txt").expect("Right file found"); + read_to_string("b.txt").expect("Right file not found"); let res: Vec = get_differences(&left_file, &right_file);