Use shorter span for existing '
-> "
structured suggestion
This commit is contained in:
parent
982918f493
commit
4a10b01f95
14 changed files with 51 additions and 41 deletions
|
@ -2216,12 +2216,21 @@ pub enum MoreThanOneCharSugg {
|
|||
ch: String,
|
||||
},
|
||||
#[suggestion(parse_use_double_quotes, code = "{sugg}", applicability = "machine-applicable")]
|
||||
Quotes {
|
||||
QuotesFull {
|
||||
#[primary_span]
|
||||
span: Span,
|
||||
is_byte: bool,
|
||||
sugg: String,
|
||||
},
|
||||
#[multipart_suggestion(parse_use_double_quotes, applicability = "machine-applicable")]
|
||||
Quotes {
|
||||
#[suggestion_part(code = "{prefix}\"")]
|
||||
start: Span,
|
||||
#[suggestion_part(code = "\"")]
|
||||
end: Span,
|
||||
is_byte: bool,
|
||||
prefix: &'static str,
|
||||
},
|
||||
}
|
||||
|
||||
#[derive(Subdiagnostic)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue