@@ -106,13 +106,15 @@ fn check_info_file_exercises(info_file: &InfoFile) -> Result<HashSet<PathBuf>> {
106106
107107 if !file_buf. contains ( "fn main()" ) {
108108 bail ! (
109- "The `main` function is missing in the file `{path}`.\n Create at least an empty `main` function to avoid language server errors"
109+ "The `main` function is missing in the file `{path}`.\n \
110+ Create at least an empty `main` function to avoid language server errors"
110111 ) ;
111112 }
112113
113114 if !file_buf. contains ( "// TODO" ) {
114115 bail ! (
115- "Didn't find any `// TODO` comment in the file `{path}`.\n You need to have at least one such comment to guide the user."
116+ "Didn't find any `// TODO` comment in the file `{path}`.\n \
117+ You need to have at least one such comment to guide the user."
116118 ) ;
117119 }
118120
@@ -227,7 +229,10 @@ fn check_exercises_unsolved(
227229
228230 match result {
229231 Ok ( true ) => {
230- bail ! ( "The exercise {exercise_name} is already solved.\n {SKIP_CHECK_UNSOLVED_HINT}" , )
232+ bail ! (
233+ "The exercise {exercise_name} is already solved.\n \
234+ {SKIP_CHECK_UNSOLVED_HINT}",
235+ )
231236 }
232237 Ok ( false ) => ( ) ,
233238 Err ( e) => return Err ( e) ,
@@ -242,10 +247,12 @@ fn check_exercises_unsolved(
242247fn check_exercises ( info_file : & ' static InfoFile , cmd_runner : & ' static CmdRunner ) -> Result < ( ) > {
243248 match info_file. format_version . cmp ( & CURRENT_FORMAT_VERSION ) {
244249 Ordering :: Less => bail ! (
245- "`format_version` < {CURRENT_FORMAT_VERSION} (supported version)\n Please migrate to the latest format version"
250+ "`format_version` < {CURRENT_FORMAT_VERSION} (supported version)\n \
251+ Please migrate to the latest format version"
246252 ) ,
247253 Ordering :: Greater => bail ! (
248- "`format_version` > {CURRENT_FORMAT_VERSION} (supported version)\n Try updating the Rustlings program"
254+ "`format_version` > {CURRENT_FORMAT_VERSION} (supported version)\n \
255+ Try updating the Rustlings program"
249256 ) ,
250257 Ordering :: Equal => ( ) ,
251258 }
0 commit comments