From 64342599ca43fb72d0db8e79802a1018f480b5f5 Mon Sep 17 00:00:00 2001 From: gfreezy Date: Sat, 19 Jan 2019 22:11:38 +0800 Subject: ignore unused methods --- crates/ra_ide_api/src/completion/completion_item.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/ra_ide_api/src/completion/completion_item.rs b/crates/ra_ide_api/src/completion/completion_item.rs index 7bd634498..f9a266524 100644 --- a/crates/ra_ide_api/src/completion/completion_item.rs +++ b/crates/ra_ide_api/src/completion/completion_item.rs @@ -176,6 +176,7 @@ impl<'a> Builder<'a> { self.insert_text = Some(insert_text.into()); self } + #[allow(unused)] pub(crate) fn insert_text_format( mut self, insert_text_format: InsertTextFormat, @@ -191,10 +192,12 @@ impl<'a> Builder<'a> { self.kind = Some(kind); self } + #[allow(unused)] pub(crate) fn text_edit(mut self, text_edit: AtomTextEdit) -> Builder<'a> { self.text_edit = Some(text_edit); self } + #[allow(unused)] pub(crate) fn additional_text_edits(mut self, additional_text_edits: TextEdit) -> Builder<'a> { self.additional_text_edits = Some(additional_text_edits); self -- cgit v1.2.3