diff options
author | pommicket <pommicket@gmail.com> | 2025-09-09 02:32:49 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2025-09-09 02:33:12 -0400 |
commit | 9c72ccfe61df5cc2ef05f2982b748d73ff28b406 (patch) | |
tree | e0a05d0b576ac1fd22387b8d670250b8ab355194 /src | |
parent | 323fbd1a50643e6834f66de22d7524979ee5bff7 (diff) |
Clean up spacing
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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<String>`, etc.). + /// `default` can be any iterable-of-strings (`&[&str]`, `Vec<String>`, etc.). pub fn get_list_or_default<L>(&self, key: &str, default: L) -> Vec<String> 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<String> { let empty: [&'static str; 0] = []; |