X-Git-Url: https://git.ralfj.de/rust-101.git/blobdiff_plain/d9fc9a4d89d8e4950f43308318962d9179bd1177..35c4d2161ea07cfbb4085d7e5242ab9939889afa:/dup-unimpl.sed diff --git a/dup-unimpl.sed b/dup-unimpl.sed new file mode 100644 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 + } +}