From fd8db14c2fcec7801edbdbb8e7f4d4c982a3da09 Mon Sep 17 00:00:00 2001 From: gfreezy Date: Sun, 20 Jan 2019 17:28:10 +0800 Subject: fix tests --- crates/ra_ide_api/src/completion/completion_context.rs | 2 +- .../snapshots/completion_item__keywords_in_use_stmt2.snap | 6 +++--- .../completion/snapshots/completion_item__method_completion.snap | 4 ++-- .../completion/snapshots/completion_item__reference_completion.snap | 6 +++--- .../snapshots/completion_item__struct_field_completion.snap | 4 ++-- .../completion_item__struct_field_completion_autoderef.snap | 6 +++--- .../snapshots/completion_item__struct_field_completion_self.snap | 6 +++--- .../snapshots/completion_item__use_item_starting_with_self.snap | 4 ++-- 8 files changed, 19 insertions(+), 19 deletions(-) (limited to 'crates') diff --git a/crates/ra_ide_api/src/completion/completion_context.rs b/crates/ra_ide_api/src/completion/completion_context.rs index 7bc2def14..b09c66c18 100644 --- a/crates/ra_ide_api/src/completion/completion_context.rs +++ b/crates/ra_ide_api/src/completion/completion_context.rs @@ -72,7 +72,7 @@ impl<'a> CompletionContext<'a> { match self.leaf.kind() { // workaroud when completion is triggered by trigger characters. DOT | COLONCOLON => TextRange::from_to(self.offset, self.offset), - _ => self.leaf.range() + _ => self.leaf.range(), } } diff --git a/crates/ra_ide_api/src/completion/snapshots/completion_item__keywords_in_use_stmt2.snap b/crates/ra_ide_api/src/completion/snapshots/completion_item__keywords_in_use_stmt2.snap index 8d33629ed..4d4c7af50 100644 --- a/crates/ra_ide_api/src/completion/snapshots/completion_item__keywords_in_use_stmt2.snap +++ b/crates/ra_ide_api/src/completion/snapshots/completion_item__keywords_in_use_stmt2.snap @@ -1,4 +1,4 @@ -Created: 2019-01-20T04:00:48.214287+00:00 +Created: 2019-01-20T09:26:20.872623+00:00 Creator: insta@0.1.4 Source: crates/ra_ide_api/src/completion/completion_item.rs @@ -13,7 +13,7 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs lookup: None, insert_text: None, insert_text_format: PlainText, - source_range: [18; 20), + source_range: [20; 20), text_edit: None }, CompletionItem { @@ -28,7 +28,7 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs "super::" ), insert_text_format: PlainText, - source_range: [18; 20), + source_range: [20; 20), text_edit: None } ] diff --git a/crates/ra_ide_api/src/completion/snapshots/completion_item__method_completion.snap b/crates/ra_ide_api/src/completion/snapshots/completion_item__method_completion.snap index 44624473e..966148a36 100644 --- a/crates/ra_ide_api/src/completion/snapshots/completion_item__method_completion.snap +++ b/crates/ra_ide_api/src/completion/snapshots/completion_item__method_completion.snap @@ -1,4 +1,4 @@ -Created: 2019-01-20T04:00:48.203164+00:00 +Created: 2019-01-20T09:26:20.868112+00:00 Creator: insta@0.1.4 Source: crates/ra_ide_api/src/completion/completion_item.rs @@ -15,7 +15,7 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs "the_method($0)" ), insert_text_format: Snippet, - source_range: [143; 144), + source_range: [144; 144), text_edit: None } ] diff --git a/crates/ra_ide_api/src/completion/snapshots/completion_item__reference_completion.snap b/crates/ra_ide_api/src/completion/snapshots/completion_item__reference_completion.snap index 404c738bd..632d9bbc7 100644 --- a/crates/ra_ide_api/src/completion/snapshots/completion_item__reference_completion.snap +++ b/crates/ra_ide_api/src/completion/snapshots/completion_item__reference_completion.snap @@ -1,4 +1,4 @@ -Created: 2019-01-20T04:00:48.220278+00:00 +Created: 2019-01-20T09:26:20.899262+00:00 Creator: insta@0.1.4 Source: crates/ra_ide_api/src/completion/completion_item.rs @@ -13,7 +13,7 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs lookup: None, insert_text: None, insert_text_format: PlainText, - source_range: [45; 47), + source_range: [47; 47), text_edit: None }, CompletionItem { @@ -26,7 +26,7 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs lookup: None, insert_text: None, insert_text_format: PlainText, - source_range: [45; 47), + source_range: [47; 47), text_edit: None } ] diff --git a/crates/ra_ide_api/src/completion/snapshots/completion_item__struct_field_completion.snap b/crates/ra_ide_api/src/completion/snapshots/completion_item__struct_field_completion.snap index 530c76a02..c88ddbc67 100644 --- a/crates/ra_ide_api/src/completion/snapshots/completion_item__struct_field_completion.snap +++ b/crates/ra_ide_api/src/completion/snapshots/completion_item__struct_field_completion.snap @@ -1,4 +1,4 @@ -Created: 2019-01-20T04:00:48.203121+00:00 +Created: 2019-01-20T09:26:20.868146+00:00 Creator: insta@0.1.4 Source: crates/ra_ide_api/src/completion/completion_item.rs @@ -15,7 +15,7 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs lookup: None, insert_text: None, insert_text_format: PlainText, - source_range: [84; 85), + source_range: [85; 85), text_edit: None } ] diff --git a/crates/ra_ide_api/src/completion/snapshots/completion_item__struct_field_completion_autoderef.snap b/crates/ra_ide_api/src/completion/snapshots/completion_item__struct_field_completion_autoderef.snap index ec861bf7e..f310f523d 100644 --- a/crates/ra_ide_api/src/completion/snapshots/completion_item__struct_field_completion_autoderef.snap +++ b/crates/ra_ide_api/src/completion/snapshots/completion_item__struct_field_completion_autoderef.snap @@ -1,4 +1,4 @@ -Created: 2019-01-20T04:00:48.203230+00:00 +Created: 2019-01-20T09:26:20.868561+00:00 Creator: insta@0.1.4 Source: crates/ra_ide_api/src/completion/completion_item.rs @@ -15,7 +15,7 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs lookup: None, insert_text: None, insert_text_format: PlainText, - source_range: [125; 126), + source_range: [126; 126), text_edit: None }, CompletionItem { @@ -30,7 +30,7 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs "foo($0)" ), insert_text_format: Snippet, - source_range: [125; 126), + source_range: [126; 126), text_edit: None } ] diff --git a/crates/ra_ide_api/src/completion/snapshots/completion_item__struct_field_completion_self.snap b/crates/ra_ide_api/src/completion/snapshots/completion_item__struct_field_completion_self.snap index ee69884c8..4eae65128 100644 --- a/crates/ra_ide_api/src/completion/snapshots/completion_item__struct_field_completion_self.snap +++ b/crates/ra_ide_api/src/completion/snapshots/completion_item__struct_field_completion_self.snap @@ -1,4 +1,4 @@ -Created: 2019-01-20T04:00:48.203235+00:00 +Created: 2019-01-20T09:26:20.868333+00:00 Creator: insta@0.1.4 Source: crates/ra_ide_api/src/completion/completion_item.rs @@ -15,7 +15,7 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs lookup: None, insert_text: None, insert_text_format: PlainText, - source_range: [120; 121), + source_range: [121; 121), text_edit: None }, CompletionItem { @@ -30,7 +30,7 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs "foo($0)" ), insert_text_format: Snippet, - source_range: [120; 121), + source_range: [121; 121), text_edit: None } ] diff --git a/crates/ra_ide_api/src/completion/snapshots/completion_item__use_item_starting_with_self.snap b/crates/ra_ide_api/src/completion/snapshots/completion_item__use_item_starting_with_self.snap index 8b6aca26e..1a3bd8034 100644 --- a/crates/ra_ide_api/src/completion/snapshots/completion_item__use_item_starting_with_self.snap +++ b/crates/ra_ide_api/src/completion/snapshots/completion_item__use_item_starting_with_self.snap @@ -1,4 +1,4 @@ -Created: 2019-01-20T04:00:48.225170+00:00 +Created: 2019-01-20T09:26:20.899584+00:00 Creator: insta@0.1.4 Source: crates/ra_ide_api/src/completion/completion_item.rs @@ -13,7 +13,7 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs lookup: None, insert_text: None, insert_text_format: PlainText, - source_range: [24; 26), + source_range: [26; 26), text_edit: None } ] -- cgit v1.2.3