diff options
| author | mo8it <mo8it@proton.me> | 2024-08-28 00:56:22 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-08-28 00:56:22 +0200 |
| commit | 7d2bc1c7a4333de5460cb86a8dca5e5ecad2a643 (patch) | |
| tree | 1e11845d6472e4c70a01ee5e3da20e2a7e0c633a /src/dev/check.rs | |
| parent | c209c874a9b0aad4a311ef9947c734e086f83a1c (diff) | |
Use a Vec for the name col padding
Diffstat (limited to 'src/dev/check.rs')
| -rw-r--r-- | src/dev/check.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dev/check.rs b/src/dev/check.rs index 4c5e072..a6db3c2 100644 --- a/src/dev/check.rs +++ b/src/dev/check.rs @@ -14,9 +14,11 @@ use crate::{ collections::{hash_set_with_capacity, HashSet}, exercise::{RunnableExercise, OUTPUT_CAPACITY}, info_file::{ExerciseInfo, InfoFile}, - CURRENT_FORMAT_VERSION, MAX_EXERCISE_NAME_LEN, + CURRENT_FORMAT_VERSION, }; +const MAX_EXERCISE_NAME_LEN: usize = 32; + // Find a char that isn't allowed in the exercise's `name` or `dir`. fn forbidden_char(input: &str) -> Option<char> { input.chars().find(|c| !c.is_alphanumeric() && *c != '_') |
