mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-04 01:03:31 +02:00
Borrow deserialized values
This commit is contained in:
+1
-1
@@ -128,7 +128,7 @@ fn main() -> Result<ExitCode> {
|
||||
None
|
||||
} else {
|
||||
// For the notify event handler thread.
|
||||
// Leaking is not a problem because the slice lives until the end of the program.
|
||||
// Leaking is fine since the slice is used until the end of the program.
|
||||
Some(
|
||||
&*app_state
|
||||
.exercises()
|
||||
|
||||
Reference in New Issue
Block a user