mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-09-29 02:03:29 +00: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