aboutsummaryrefslogtreecommitdiffstats
path: root/license-generator/src/params.rs
diff options
context:
space:
mode:
Diffstat (limited to 'license-generator/src/params.rs')
-rw-r--r--license-generator/src/params.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/license-generator/src/params.rs b/license-generator/src/params.rs
index 80136c2..1b234e7 100644
--- a/license-generator/src/params.rs
+++ b/license-generator/src/params.rs
@@ -1,9 +1,10 @@
+use std::borrow::Cow;
use std::collections::BTreeMap;
use url::form_urlencoded;
-pub fn parse(params: &str) -> BTreeMap<String, String> {
- let iter = form_urlencoded::parse(params.as_bytes()).into_owned();
+pub(crate) fn parse<'a>(params: &'a str) -> BTreeMap<Cow<'a, str>, Cow<'a, str>> {
+ let iter = form_urlencoded::parse(params.as_bytes());
let mut dict = BTreeMap::new();
for (key, value) in iter {