Commit 50a972db6f

50a972db6f0700fe3b96f8e6b07223ef7fb829f7

parent: c4d1d79629

Unsigned

Damir Jelić <poljar@termina.org.uk> · 2020-07-01 15:47 UTC

config_macros: Disable some warnings.

Layout: unified · split

src/config_macros.rs +3
@@ -38,6 +38,7 @@ macro_rules! option_create {
3838macro_rules! option_getter {
3939 ($option_type:ident, $option_name:ident, $output_type:ty) => {
4040 paste::item! {
41 #[allow(dead_code)]
4142 pub fn [<$option_name>](&self) -> $output_type {
4243 let option_name = stringify!($option_name);
4344
@@ -251,6 +252,7 @@ macro_rules! config {
251252 #[allow(unused_imports)]
252253 use strum::VariantNames;
253254 use std::ops::{Deref, DerefMut};
255 #[allow(unused_imports)]
254256 use weechat::config::{
255257 SectionHandle, SectionHandleMut, StringOptionSettings,
256258 ConfigOption, ConfigSection, ConfigSectionSettings,
@@ -292,6 +294,7 @@ macro_rules! config {
292294
293295 paste::item! {
294296 $(
297 #[allow(dead_code)]
295298 pub fn $section(&self) -> [<$section:camel Section>] {
296299 let section_name = stringify!($section);
297300 let section = self.0.search_section(section_name)