X-Git-Url: https://git.ralfj.de/rust-101.git/blobdiff_plain/188b1ec1b8528e2326791feccc8077e15bd60182..5baae0ea037ed642b7fe8975fb3004b29827d5b1:/src/part11.rs diff --git a/src/part11.rs b/src/part11.rs index 5cc1462..9d093e3 100644 --- a/src/part11.rs +++ b/src/part11.rs @@ -42,7 +42,7 @@ impl Callbacks { // Registration simply stores the callback. pub fn register(&mut self, callback: Box) { - self.callbacks.push(callback); /*@*/ + self.callbacks.push(callback); } // We can also write a generic version of `register`, such that it will be instantiated with some concrete closure type `F`