fix rustdoc test
This commit is contained in:
parent
ea1883d7b2
commit
f4d30b156b
@ -95,7 +95,7 @@ pub(crate) fn emit_unescape_error(
|
|||||||
}
|
}
|
||||||
escaped.push(c);
|
escaped.push(c);
|
||||||
}
|
}
|
||||||
if escaped.len() != lit.len() {
|
if escaped.len() != lit.len() || full_lit_span.is_empty() {
|
||||||
let sugg = format!("{prefix}\"{escaped}\"");
|
let sugg = format!("{prefix}\"{escaped}\"");
|
||||||
MoreThanOneCharSugg::QuotesFull {
|
MoreThanOneCharSugg::QuotesFull {
|
||||||
span: full_lit_span,
|
span: full_lit_span,
|
||||||
|
Loading…
Reference in New Issue
Block a user