Fix 1.60 lints
This commit is contained in:
parent
9712bbb23b
commit
b935fac957
2 changed files with 2 additions and 2 deletions
|
@ -165,7 +165,7 @@ impl Completion {
|
||||||
if let Some(additional_edits) = item
|
if let Some(additional_edits) = item
|
||||||
.additional_text_edits
|
.additional_text_edits
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.or_else(|| resolved_additional_text_edits.as_ref())
|
.or(resolved_additional_text_edits.as_ref())
|
||||||
{
|
{
|
||||||
if !additional_edits.is_empty() {
|
if !additional_edits.is_empty() {
|
||||||
let transaction = util::generate_transaction_from_edits(
|
let transaction = util::generate_transaction_from_edits(
|
||||||
|
|
|
@ -490,7 +490,7 @@ mod test {
|
||||||
assert_eq!(word_wrapper, vec!["AAAAAAAAAAAAAAA", "AAAA\u{00a0}AAA",]);
|
assert_eq!(word_wrapper, vec!["AAAAAAAAAAAAAAA", "AAAA\u{00a0}AAA",]);
|
||||||
|
|
||||||
// Ensure that if the character was a regular space, it would be wrapped differently.
|
// Ensure that if the character was a regular space, it would be wrapped differently.
|
||||||
let text_space = text.replace("\u{00a0}", " ");
|
let text_space = text.replace('\u{00a0}', " ");
|
||||||
let (word_wrapper_space, _) =
|
let (word_wrapper_space, _) =
|
||||||
run_composer(Composer::WordWrapper { trim: true }, &text_space, width);
|
run_composer(Composer::WordWrapper { trim: true }, &text_space, width);
|
||||||
assert_eq!(word_wrapper_space, vec!["AAAAAAAAAAAAAAA AAAA", "AAA",]);
|
assert_eq!(word_wrapper_space, vec!["AAAAAAAAAAAAAAA AAAA", "AAA",]);
|
||||||
|
|
Loading…
Add table
Reference in a new issue