diff options
author | gfreezy <[email protected]> | 2019-01-16 13:39:01 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-01-19 12:36:58 +0000 |
commit | 5c8cb56506646637e45a646657baf12fa9a8f49a (patch) | |
tree | 132edba357d82b4f011ea580c7e73e36c7cde02b /crates/ra_ide_api/src/lib.rs | |
parent | bc0f79f74ad0ab4f663b94772ccbfabed1de625e (diff) |
move rename to a new mod
Diffstat (limited to 'crates/ra_ide_api/src/lib.rs')
-rw-r--r-- | crates/ra_ide_api/src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/ra_ide_api/src/lib.rs b/crates/ra_ide_api/src/lib.rs index 7b47d7b6d..1845bf443 100644 --- a/crates/ra_ide_api/src/lib.rs +++ b/crates/ra_ide_api/src/lib.rs | |||
@@ -23,6 +23,7 @@ mod hover; | |||
23 | mod call_info; | 23 | mod call_info; |
24 | mod syntax_highlighting; | 24 | mod syntax_highlighting; |
25 | mod parent_module; | 25 | mod parent_module; |
26 | mod rename; | ||
26 | 27 | ||
27 | use std::{fmt, sync::Arc}; | 28 | use std::{fmt, sync::Arc}; |
28 | 29 | ||
@@ -464,7 +465,7 @@ impl Analysis { | |||
464 | &self, | 465 | &self, |
465 | position: FilePosition, | 466 | position: FilePosition, |
466 | new_name: &str, | 467 | new_name: &str, |
467 | ) -> Cancelable<Vec<SourceFileEdit>> { | 468 | ) -> Cancelable<Option<SourceChange>> { |
468 | self.with_db(|db| db.rename(position, new_name)) | 469 | self.with_db(|db| db.rename(position, new_name)) |
469 | } | 470 | } |
470 | 471 | ||