Try analyze https://github.com/estin/cywad
$ git log -n 1
commit de2409702ba639f06cf340f5e3f3b7e671021d1b (HEAD -> master, tag: 2020-01-20, origin/staging, origin/release, origin/master, origin/HEAD)
Merge: 648241ee 72792f6b
Author: bors[bot] <26634292+bors[bot]@users.noreply.github.com>
Date: Mon Jan 20 10:16:06 2020 +0000
Merge #2877
2877: "Insert explicit type " assist fix #2869, fix typo r=matklad a=TomasKralCZ
So this was quite straightforward. I basically looked at how the other assists work and tried doing something simillar. I also fixed a typo in the other assist.
Co-authored-by: TomasKralCZ <tomas@kral.hk>
$ rustc -V
rustc 1.42.0-nightly (859764425 2020-01-07)
$ cargo -V
cargo 1.42.0-nightly (6e1ca924a 2020-01-06)
$ uname -a
Linux localhost.lan 5.1.5-arch1-2-ARCH #1 SMP PREEMPT Mon May 27 03:37:39 UTC 2019 x86_64 GNU/Linux
$ git clone https://github.com/estin/cywad ../cywad-clean