projects
/
rust-101.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
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
+++ b/
dup-unimpl.sed
@@ -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
+ }
+}