about summary refs log tree commit diff
path: root/fun/defer_rs/examples/undefer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'fun/defer_rs/examples/undefer.rs')
-rw-r--r--fun/defer_rs/examples/undefer.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/fun/defer_rs/examples/undefer.rs b/fun/defer_rs/examples/undefer.rs
index 17ad8a6b5485..fa659de8910e 100644
--- a/fun/defer_rs/examples/undefer.rs
+++ b/fun/defer_rs/examples/undefer.rs
@@ -1,10 +1,10 @@
 // Go's defer in Rust, with a little twist!
 
 struct Defer<F: Fn()> {
-    f: F
+    f: F,
 }
 
-impl <F: Fn()> Drop for Defer<F> {
+impl<F: Fn()> Drop for Defer<F> {
     fn drop(&mut self) {
         (self.f)()
     }