chiark / gitweb /
config: Rename ClientAgnostic to Global
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 7 Aug 2021 18:11:34 +0000 (19:11 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 7 Aug 2021 18:43:38 +0000 (19:43 +0100)
NFC yet, but we are going to change this.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/config.rs

index 77f340125902553be72ded93553b2eea7522e074..2bdb75bf68378ca169652701fe562a054e262f26 100644 (file)
@@ -519,7 +519,7 @@ enum SectionKindList {
   PerClient,
   Limited,
   Limits,
-  ClientAgnostic,
+  Global,
   ServerName,
 }
 use SectionKindList as SKL;
@@ -541,7 +541,7 @@ impl SectionKindList {
       SKL::Limits         => matches!(s, SN::ServerLimit(_)
                                        | SN::GlobalLimit),
 
-      SKL::ClientAgnostic => matches!(s, SN::Common
+      SKL::Global         => matches!(s, SN::Common
                                        | SN::Server(_)),
 
       SKL::Limited        => SKL::PerClient.contains(s)
@@ -660,7 +660,7 @@ impl<'c> ResolveContext<'c> {
     match self.end {
       LinkEnd::Client => self.ordinary(key)?,
       LinkEnd::Server => {
-        self.first_of(key, SKL::ClientAgnostic)?
+        self.first_of(key, SKL::Global)?
           .unwrap_or_default()
       },
     }