@@ -45,7 +45,7 @@ const BALLS_INSERT_END: &str = "\n// balls-insert-end";
45
45
46
46
fn splice_into_huff ( path : & str , content_to_inject : String ) -> Result < ( ) , String > {
47
47
let content =
48
- std:: fs:: read_to_string ( & path) . map_err ( |_| format ! ( "Failed to read file {}" , path) ) ?;
48
+ std:: fs:: read_to_string ( path) . map_err ( |_| format ! ( "Failed to read file {}" , path) ) ?;
49
49
let start_index = content
50
50
. find ( BALLS_INSERT_START )
51
51
. ok_or ( format ! ( "Could not find \" {}\" " , BALLS_INSERT_START ) ) ?
@@ -61,7 +61,7 @@ fn splice_into_huff(path: &str, content_to_inject: String) -> Result<(), String>
61
61
& content[ end_index..]
62
62
) ;
63
63
64
- std:: fs:: write ( & path, new_content) . map_err ( |_| format ! ( "Failed to write file {}" , path) ) ?;
64
+ std:: fs:: write ( path, new_content) . map_err ( |_| format ! ( "Failed to write file {}" , path) ) ?;
65
65
66
66
Ok ( ( ) )
67
67
}
@@ -88,7 +88,7 @@ fn main() {
88
88
89
89
let ( maybe_ast_nodes, errs) = parser:: parse_tokens ( tokens. clone ( ) ) ;
90
90
91
- let errored = print_errors ( & src, & file_path, errs, |tok_span| {
91
+ let errored = print_errors ( & src, file_path, errs, |tok_span| {
92
92
resolve_span_span ( tok_span, & spanned_tokens)
93
93
} ) ;
94
94
0 commit comments