]> git.lizzy.rs Git - rust.git/commitdiff
expose make_pub_crate action
authorAleksey Kladov <aleksey.kladov@gmail.com>
Thu, 27 Dec 2018 09:35:40 +0000 (12:35 +0300)
committerAleksey Kladov <aleksey.kladov@gmail.com>
Thu, 27 Dec 2018 09:35:40 +0000 (12:35 +0300)
crates/ra_analysis/src/imp.rs

index 69c9b104e7a2d75fab0d64a76625fb76d4c7c79d..38a5c1a7d175ff09e03977b9a49574805a410dbd 100644 (file)
@@ -429,6 +429,7 @@ pub fn assists(&self, file_id: FileId, range: TextRange) -> Vec<SourceChange> {
             ra_editor::flip_comma(&file, offset).map(|f| f()),
             ra_editor::add_derive(&file, offset).map(|f| f()),
             ra_editor::add_impl(&file, offset).map(|f| f()),
+            ra_editor::make_pub_crate(&file, offset).map(|f| f()),
             ra_editor::introduce_variable(&file, range).map(|f| f()),
         ];
         actions