about summary refs log tree commit diff
path: root/kittybox-rs/src/indieauth.rs
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2022-07-07 00:34:43 +0300
committerVika <vika@fireburn.ru>2022-07-07 00:36:39 +0300
commit7ddb7eddec3b928947b52f715aaf4821a818ebee (patch)
treea2274a6caedf4c2b1f11469097a51dddd68e774c /kittybox-rs/src/indieauth.rs
parent7f23ec84bc05c236c1bf40c2f0d72412af711516 (diff)
downloadkittybox-7ddb7eddec3b928947b52f715aaf4821a818ebee.tar.zst
format using rustfmt
Diffstat (limited to 'kittybox-rs/src/indieauth.rs')
-rw-r--r--kittybox-rs/src/indieauth.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/kittybox-rs/src/indieauth.rs b/kittybox-rs/src/indieauth.rs
index 63de859..103f514 100644
--- a/kittybox-rs/src/indieauth.rs
+++ b/kittybox-rs/src/indieauth.rs
@@ -151,7 +151,10 @@ where
 {
     type Rejection = IndieAuthError;
 
-    #[cfg_attr(all(debug_assertions, not(test)), allow(unreachable_code, unused_variables))]
+    #[cfg_attr(
+        all(debug_assertions, not(test)),
+        allow(unreachable_code, unused_variables)
+    )]
     async fn from_request(req: &mut RequestParts<B>) -> Result<Self, Self::Rejection> {
         // Return a fake user if we're running a debug build
         // I don't wanna bother with authentication
@@ -159,7 +162,7 @@ where
         return Ok(User::new(
             "http://localhost:8080/",
             "https://quill.p3k.io/",
-            "create update delete media"
+            "create update delete media",
         ));
 
         let TypedHeader(Authorization(token)) =
@@ -232,7 +235,7 @@ mod tests {
     use super::User;
     use axum::{
         extract::FromRequest,
-        http::{Method, Request}
+        http::{Method, Request},
     };
     use httpmock::prelude::*;