Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
JssDWt committed Dec 6, 2024
1 parent fa754ba commit d4c193e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/cln_plugin/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ impl<'a> OptionType<'a> for config_type::DefaultString {
}
}

impl<'a> OptionType<'a> for config_type::DefaultInteger {
impl OptionType<'_> for config_type::DefaultInteger {
type OutputValue = i64;
type DefaultValue = i64;

Expand All @@ -217,7 +217,7 @@ impl<'a> OptionType<'a> for config_type::DefaultInteger {
}
}

impl<'a> OptionType<'a> for config_type::DefaultBoolean {
impl OptionType<'_> for config_type::DefaultBoolean {
type OutputValue = bool;
type DefaultValue = bool;

Expand All @@ -236,7 +236,7 @@ impl<'a> OptionType<'a> for config_type::DefaultBoolean {
}
}

impl<'a> OptionType<'a> for config_type::Flag {
impl OptionType<'_> for config_type::Flag {
type OutputValue = bool;
type DefaultValue = ();

Expand All @@ -256,7 +256,7 @@ impl<'a> OptionType<'a> for config_type::Flag {
}
}

impl<'a> OptionType<'a> for config_type::String {
impl OptionType<'_> for config_type::String {
type OutputValue = Option<String>;
type DefaultValue = ();

Expand All @@ -280,7 +280,7 @@ impl<'a> OptionType<'a> for config_type::String {
}
}

impl<'a> OptionType<'a> for config_type::Integer {
impl OptionType<'_> for config_type::Integer {
type OutputValue = Option<i64>;
type DefaultValue = ();

Expand All @@ -303,7 +303,7 @@ impl<'a> OptionType<'a> for config_type::Integer {
ValueType::Integer
}
}
impl<'a> OptionType<'a> for config_type::Boolean {
impl OptionType<'_> for config_type::Boolean {
type OutputValue = Option<bool>;
type DefaultValue = ();

Expand Down

0 comments on commit d4c193e

Please sign in to comment.