diff options
author | Martin Asquino <[email protected]> | 2019-11-02 22:33:34 +0000 |
---|---|---|
committer | Martin Asquino <[email protected]> | 2019-11-02 22:33:34 +0000 |
commit | ccf8817d181ab9430a00c38d96b481a07af701bb (patch) | |
tree | 3ebe6c1e70f859eff504f3081c057060e04c2c5d /crates/ra_ide_api/src/completion/complete_path.rs | |
parent | dc3848a6a3e659004ba4f2160503be28ea0f9051 (diff) |
Use `bool` instead of `Option<bool>` and print it's value only when `true`
Diffstat (limited to 'crates/ra_ide_api/src/completion/complete_path.rs')
-rw-r--r-- | crates/ra_ide_api/src/completion/complete_path.rs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/crates/ra_ide_api/src/completion/complete_path.rs b/crates/ra_ide_api/src/completion/complete_path.rs index 2c9c8645b..9ac9768af 100644 --- a/crates/ra_ide_api/src/completion/complete_path.rs +++ b/crates/ra_ide_api/src/completion/complete_path.rs | |||
@@ -308,7 +308,6 @@ mod tests { | |||
308 | documentation: Documentation( | 308 | documentation: Documentation( |
309 | "Bar Variant with i32", | 309 | "Bar Variant with i32", |
310 | ), | 310 | ), |
311 | deprecated: false, | ||
312 | }, | 311 | }, |
313 | CompletionItem { | 312 | CompletionItem { |
314 | label: "Foo", | 313 | label: "Foo", |
@@ -320,7 +319,6 @@ mod tests { | |||
320 | documentation: Documentation( | 319 | documentation: Documentation( |
321 | "Foo Variant", | 320 | "Foo Variant", |
322 | ), | 321 | ), |
323 | deprecated: false, | ||
324 | }, | 322 | }, |
325 | ]"### | 323 | ]"### |
326 | ); | 324 | ); |
@@ -356,7 +354,6 @@ mod tests { | |||
356 | documentation: Documentation( | 354 | documentation: Documentation( |
357 | "Bar Variant with i32 and u32", | 355 | "Bar Variant with i32 and u32", |
358 | ), | 356 | ), |
359 | deprecated: false, | ||
360 | }, | 357 | }, |
361 | CompletionItem { | 358 | CompletionItem { |
362 | label: "Foo", | 359 | label: "Foo", |
@@ -368,7 +365,6 @@ mod tests { | |||
368 | documentation: Documentation( | 365 | documentation: Documentation( |
369 | "Foo Variant (empty)", | 366 | "Foo Variant (empty)", |
370 | ), | 367 | ), |
371 | deprecated: false, | ||
372 | }, | 368 | }, |
373 | CompletionItem { | 369 | CompletionItem { |
374 | label: "S", | 370 | label: "S", |
@@ -380,7 +376,6 @@ mod tests { | |||
380 | documentation: Documentation( | 376 | documentation: Documentation( |
381 | "", | 377 | "", |
382 | ), | 378 | ), |
383 | deprecated: false, | ||
384 | }, | 379 | }, |
385 | ]"### | 380 | ]"### |
386 | ); | 381 | ); |
@@ -416,7 +411,6 @@ mod tests { | |||
416 | documentation: Documentation( | 411 | documentation: Documentation( |
417 | "An associated method", | 412 | "An associated method", |
418 | ), | 413 | ), |
419 | deprecated: false, | ||
420 | }, | 414 | }, |
421 | ] | 415 | ] |
422 | "### | 416 | "### |
@@ -451,7 +445,6 @@ mod tests { | |||
451 | documentation: Documentation( | 445 | documentation: Documentation( |
452 | "An associated const", | 446 | "An associated const", |
453 | ), | 447 | ), |
454 | deprecated: false, | ||
455 | }, | 448 | }, |
456 | ]"### | 449 | ]"### |
457 | ); | 450 | ); |
@@ -485,7 +478,6 @@ mod tests { | |||
485 | documentation: Documentation( | 478 | documentation: Documentation( |
486 | "An associated type", | 479 | "An associated type", |
487 | ), | 480 | ), |
488 | deprecated: false, | ||
489 | }, | 481 | }, |
490 | ]"### | 482 | ]"### |
491 | ); | 483 | ); |
@@ -521,7 +513,6 @@ mod tests { | |||
521 | documentation: Documentation( | 513 | documentation: Documentation( |
522 | "An associated method", | 514 | "An associated method", |
523 | ), | 515 | ), |
524 | deprecated: false, | ||
525 | }, | 516 | }, |
526 | ] | 517 | ] |
527 | "### | 518 | "### |
@@ -558,7 +549,6 @@ mod tests { | |||
558 | documentation: Documentation( | 549 | documentation: Documentation( |
559 | "An associated method", | 550 | "An associated method", |
560 | ), | 551 | ), |
561 | deprecated: false, | ||
562 | }, | 552 | }, |
563 | ] | 553 | ] |
564 | "### | 554 | "### |
@@ -618,7 +608,6 @@ mod tests { | |||
618 | documentation: Documentation( | 608 | documentation: Documentation( |
619 | "A trait method", | 609 | "A trait method", |
620 | ), | 610 | ), |
621 | deprecated: false, | ||
622 | }, | 611 | }, |
623 | ] | 612 | ] |
624 | "### | 613 | "### |
@@ -655,7 +644,6 @@ mod tests { | |||
655 | documentation: Documentation( | 644 | documentation: Documentation( |
656 | "A trait method", | 645 | "A trait method", |
657 | ), | 646 | ), |
658 | deprecated: false, | ||
659 | }, | 647 | }, |
660 | ] | 648 | ] |
661 | "### | 649 | "### |
@@ -692,7 +680,6 @@ mod tests { | |||
692 | documentation: Documentation( | 680 | documentation: Documentation( |
693 | "A trait method", | 681 | "A trait method", |
694 | ), | 682 | ), |
695 | deprecated: false, | ||
696 | }, | 683 | }, |
697 | ] | 684 | ] |
698 | "### | 685 | "### |
@@ -724,7 +711,6 @@ mod tests { | |||
724 | kind: Function, | 711 | kind: Function, |
725 | lookup: "bar", | 712 | lookup: "bar", |
726 | detail: "fn bar()", | 713 | detail: "fn bar()", |
727 | deprecated: false, | ||
728 | }, | 714 | }, |
729 | CompletionItem { | 715 | CompletionItem { |
730 | label: "foo()", | 716 | label: "foo()", |
@@ -734,7 +720,6 @@ mod tests { | |||
734 | kind: Function, | 720 | kind: Function, |
735 | lookup: "foo", | 721 | lookup: "foo", |
736 | detail: "fn foo()", | 722 | detail: "fn foo()", |
737 | deprecated: false, | ||
738 | }, | 723 | }, |
739 | ] | 724 | ] |
740 | "### | 725 | "### |
@@ -765,7 +750,6 @@ mod tests { | |||
765 | insert: "foo!($0)", | 750 | insert: "foo!($0)", |
766 | kind: Macro, | 751 | kind: Macro, |
767 | detail: "#[macro_export]\nmacro_rules! foo", | 752 | detail: "#[macro_export]\nmacro_rules! foo", |
768 | deprecated: false, | ||
769 | }, | 753 | }, |
770 | CompletionItem { | 754 | CompletionItem { |
771 | label: "main()", | 755 | label: "main()", |
@@ -775,7 +759,6 @@ mod tests { | |||
775 | kind: Function, | 759 | kind: Function, |
776 | lookup: "main", | 760 | lookup: "main", |
777 | detail: "fn main()", | 761 | detail: "fn main()", |
778 | deprecated: false, | ||
779 | }, | 762 | }, |
780 | ] | 763 | ] |
781 | "### | 764 | "### |