diff options
Diffstat (limited to 'kittybox-rs/src/indieauth.rs')
-rw-r--r-- | kittybox-rs/src/indieauth.rs | 9 |
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::*; |