summary refs log tree commit diff
path: root/src/util.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.rs')
-rw-r--r--src/util.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/util.rs b/src/util.rs
index c3d5bd7..83d8e2b 100644
--- a/src/util.rs
+++ b/src/util.rs
@@ -1,7 +1,8 @@
 use std::borrow::Cow;
 
 pub fn append_query(uri: &glib::Uri, q: impl IntoIterator<Item = (String, String)>) -> glib::Uri {
-    let mut oq: Vec<(Cow<'static, str>, Cow<'static, str>)> = uri.query()
+    let mut oq: Vec<(Cow<'static, str>, Cow<'static, str>)> = uri
+        .query()
         .map(|q| serde_urlencoded::from_str(&q).unwrap())
         .unwrap_or_default();
     oq.extend(q.into_iter().map(|(k, v)| (k.into(), v.into())));
@@ -13,7 +14,10 @@ pub fn append_query(uri: &glib::Uri, q: impl IntoIterator<Item = (String, String
 mod tests {
     #[test]
     fn test_append_query() -> Result<(), glib::Error> {
-        let uri = glib::Uri::parse("https://fireburn.ru/.kittybox/micropub?test=a", glib::UriFlags::NONE)?;
+        let uri = glib::Uri::parse(
+            "https://fireburn.ru/.kittybox/micropub?test=a",
+            glib::UriFlags::NONE,
+        )?;
         let q = [
             ("q".to_owned(), "config".to_owned()),
             ("awoo".to_owned(), "nya".to_owned()),