From Cow to Display

This commit is contained in:
Maldus512 2023-05-14 22:59:17 +02:00
parent 0389a662e2
commit 9e40c69d1c
No known key found for this signature in database
GPG key ID: 61CB04B78A8DFC22

View file

@ -409,8 +409,8 @@ pub fn test(matches: &ArgMatches, triple: Triple) -> io::Result<i32> {
let current_dir = env::current_dir().unwrap();
let expected_file_path = current_dir.join(filename);
let current_dir_string = current_dir.to_string_lossy();
let expected_file_path_string = expected_file_path.to_string_lossy();
let current_dir_string = current_dir.display();
let expected_file_path_string = expected_file_path.display();
// TODO these should use roc_reporting to display nicer error messages.
match matches.value_source(ROC_FILE) {
@ -549,8 +549,8 @@ pub fn build(
let current_dir = env::current_dir().unwrap();
let expected_file_path = current_dir.join(filename);
let current_dir_string = current_dir.to_string_lossy();
let expected_file_path_string = expected_file_path.to_string_lossy();
let current_dir_string = current_dir.display();
let expected_file_path_string = expected_file_path.display();
// TODO these should use roc_reporting to display nicer error messages.
match matches.value_source(ROC_FILE) {