diff options
| author | mo8it <mo8it@proton.me> | 2024-08-01 11:26:30 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-08-01 11:26:30 +0200 |
| commit | 455d87caddc69d1b2589cd11638a341e136c891b (patch) | |
| tree | 19c103ab8f4cb0f826c897e206a0f344d558f715 /src/exercise.rs | |
| parent | 766f3c50ec20c9b3fbf95bddf9fc095ce65cef78 (diff) | |
Fix capacity
Diffstat (limited to 'src/exercise.rs')
| -rw-r--r-- | src/exercise.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/exercise.rs b/src/exercise.rs index 5cb434b..605d5f1 100644 --- a/src/exercise.rs +++ b/src/exercise.rs @@ -172,7 +172,7 @@ pub trait RunnableExercise { /// The output is written to the `output` buffer after clearing it. fn run_solution(&self, output: Option<&mut Vec<u8>>, target_dir: &Path) -> Result<bool> { let name = self.name(); - let mut bin_name = String::with_capacity(name.len()); + let mut bin_name = String::with_capacity(name.len() + 4); bin_name.push_str(name); bin_name.push_str("_sol"); |
