Annotate function with allow(dead_code)

This commit is contained in:
Matthias Beyer 2016-04-17 20:48:03 +02:00
parent 54dd7c0d7e
commit 4641236c82

View file

@ -155,6 +155,7 @@ impl Configuration {
self.editor.as_ref() self.editor.as_ref()
} }
#[allow(dead_code)] // Why do I actually need this annotation on a pub function?
pub fn config(&self) -> &Value { pub fn config(&self) -> &Value {
&self.config &self.config
} }