Move constant

This commit is contained in:
mo8it 2024-04-18 11:21:39 +02:00
parent 9f5be60b40
commit 2e9b9a9f13
2 changed files with 23 additions and 23 deletions

View file

@ -9,7 +9,7 @@ use std::{
io::{Read, StdoutLock, Write}, io::{Read, StdoutLock, Write},
}; };
use crate::{exercise::Exercise, info_file::ExerciseInfo, FENISH_LINE}; use crate::{exercise::Exercise, info_file::ExerciseInfo};
const STATE_FILE_NAME: &str = ".rustlings-state.txt"; const STATE_FILE_NAME: &str = ".rustlings-state.txt";
const BAD_INDEX_ERR: &str = "The current exercise index is higher than the number of exercises"; const BAD_INDEX_ERR: &str = "The current exercise index is higher than the number of exercises";
@ -275,3 +275,25 @@ All exercises seem to be done.
Recompiling and running all exercises to make sure that all of them are actually done. Recompiling and running all exercises to make sure that all of them are actually done.
"; ";
const FENISH_LINE: &str = "+----------------------------------------------------+
| You made it to the Fe-nish line! |
+-------------------------- ------------------------+
\\/\x1b[31m
\x1b[0m
";

View file

@ -190,25 +190,3 @@ const PRE_INIT_MSG: &str = r"
The `exercises` directory wasn't found in the current directory. The `exercises` directory wasn't found in the current directory.
If you are just starting with Rustlings, run the command `rustlings init` to initialize it."; If you are just starting with Rustlings, run the command `rustlings init` to initialize it.";
const FENISH_LINE: &str = "+----------------------------------------------------+
| You made it to the Fe-nish line! |
+-------------------------- ------------------------+
\\/\x1b[31m
\x1b[0m
";