diff options
| author | Fuwn <[email protected]> | 2022-03-27 07:00:44 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-03-27 07:00:44 +0000 |
| commit | 18d4ac1f2e9782654494c957927c2a5cc6a2915c (patch) | |
| tree | d5c13fa5595d2efe1cd9a724ddf13a116bc91d0c /src/utilities.rs | |
| parent | docs(readme): fix example (diff) | |
| download | windmark-0.1.2.tar.xz windmark-0.1.2.zip | |
docs: extend0.1.2
Diffstat (limited to 'src/utilities.rs')
| -rw-r--r-- | src/utilities.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/utilities.rs b/src/utilities.rs index 0d34dba..68962ff 100644 --- a/src/utilities.rs +++ b/src/utilities.rs @@ -16,8 +16,11 @@ // Copyright (C) 2022-2022 Fuwn <[email protected]> // SPDX-License-Identifier: GPL-3.0-only +//! Utilities to make cumbersome tasks simpler + use std::collections::HashMap; +/// Extract the queries from a URL into a `HashMap`. #[must_use] pub fn queries_from_url(url: &url::Url) -> HashMap<String, String> { let mut queries = HashMap::new(); |