add some @-magic to generate a workspace
[rust-101.git] / dup-unimpl.sed
diff --git a/dup-unimpl.sed b/dup-unimpl.sed
new file mode 100644 (file)
index 0000000..6de156b
--- /dev/null
@@ -0,0 +1,8 @@
+/^\s*unimplemented!()$/ { # if the current line is an "unimplemented!()"
+    : isunimp
+    N; # load next line
+    /\n\s*unimplemented!()$/ { # see if that one is also "unimplemented!()"
+        D; # delete first line, keep all the rest
+        b isunimp
+    }
+}