diff options
| author | mo8it <mo8it@proton.me> | 2024-04-14 02:41:19 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-04-14 02:41:19 +0200 |
| commit | bee62c89de09fdd9823cba81e07f0f8528fe8ef9 (patch) | |
| tree | bca32899b02862936905ed84624ebd3af2b0e691 /src/app_state.rs | |
| parent | 5c0073a9485c4226e58b657cb49628919a28a942 (diff) | |
Add terminal links
Diffstat (limited to 'src/app_state.rs')
| -rw-r--r-- | src/app_state.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app_state.rs b/src/app_state.rs index 1a051b9..98c6384 100644 --- a/src/app_state.rs +++ b/src/app_state.rs @@ -38,7 +38,7 @@ impl AppState { // Leaking to be able to borrow in the watch mode `Table`. // Leaking is not a problem because the `AppState` instance lives until // the end of the program. - let path = Box::leak(exercise_info.path().into_boxed_path()); + let path = exercise_info.path().leak(); exercise_info.name.shrink_to_fit(); let name = exercise_info.name.leak(); |
