Complete pub in fields

This commit is contained in:
Aleksey Kladov 2020-08-25 17:20:29 +02:00
parent 6b8bc132dc
commit 18b667cfcb
7 changed files with 76 additions and 8 deletions

View file

@ -65,7 +65,6 @@ fn ${1:feature}() {
.add_to(acc);
snippet(ctx, cap, "macro_rules", "macro_rules! $1 {\n\t($2) => {\n\t\t$0\n\t};\n}").add_to(acc);
snippet(ctx, cap, "pub(crate)", "pub(crate) $0").add_to(acc);
}
#[cfg(test)]
@ -107,7 +106,6 @@ mod tests {
"#,
expect![[r#"
sn macro_rules
sn pub(crate)
sn tfn (Test function)
sn tmod (Test module)
"#]],