diff options
| author | tv <tv@krebsco.de> | 2026-11-17 16:37:46 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-18 12:33:44 +0100 |
| commit | cfe3dbaff24b5ae433b3203d69c7e9bceb4e1ccc (patch) | |
| tree | ce6db0112bff9afb8c2dee61f6538f50abf9a7ab /src/config/mod.rs | |
| parent | 393fb4d70fc6bf88debc4ca13d644ea7de9602f5 (diff) | |
config: no lookup of the node's options by name alone
Options are looked up in the table at hand (`spec_in`), the node's or the
party client's.
Diffstat (limited to 'src/config/mod.rs')
| -rw-r--r-- | src/config/mod.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/config/mod.rs b/src/config/mod.rs index 533b44c..710376d 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -717,10 +717,6 @@ pub(crate) const OPTIONS: &[OptionSpec] = &[ }, ]; -pub(crate) fn spec(name: &str) -> Option<&'static OptionSpec> { - spec_in(OPTIONS, name) -} - /// The option of `options` named `name`. pub(super) fn spec_in(options: &'static [OptionSpec], name: &str) -> Option<&'static OptionSpec> { options.iter().find(|spec| spec.name == name) |
