From 9c72ccfe61df5cc2ef05f2982b748d73ff28b406 Mon Sep 17 00:00:00 2001 From: pommicket Date: Tue, 9 Sep 2025 02:32:49 -0400 Subject: Clean up spacing --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 77990bf..acd3eb1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -862,8 +862,7 @@ impl Configuration { /// /// Commas in list entries can be escaped with `\,`. /// - /// `default` can be any iterable-of-strings - /// (e.g. `&[&str]`, `Vec`, etc.). + /// `default` can be any iterable-of-strings (`&[&str]`, `Vec`, etc.). pub fn get_list_or_default(&self, key: &str, default: L) -> Vec where L: IntoIterator, @@ -872,6 +871,7 @@ impl Configuration { self.get_list(key) .unwrap_or_else(|| default.into_iter().map(String::from).collect()) } + /// Get value associated with `key`, and parse it as a comma-separated list, or else use `[]`. pub fn get_list_or_empty(&self, key: &str) -> Vec { let empty: [&'static str; 0] = []; -- cgit v1.2.3