mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Complete pub
in fields
This commit is contained in:
parent
6b8bc132dc
commit
18b667cfcb
7 changed files with 76 additions and 8 deletions
|
@ -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)
|
||||
"#]],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue