diff options
author | Vika <vika@fireburn.ru> | 2023-07-09 22:22:34 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2023-07-17 01:53:42 +0300 |
commit | 99ff9cdc6890959cd4d2112c2e37b97ae83cb43c (patch) | |
tree | 31cdaf82de9d95ad4ee857f9148ad442f67db23d /kittybox-rs/src/media | |
parent | dc7dfc61ec839175ebb51fcbaef1156fea5fdcf4 (diff) | |
download | kittybox-99ff9cdc6890959cd4d2112c2e37b97ae83cb43c.tar.zst |
cargo update, part 2: Axum
Axum got some breaking changes and gained some nice features — however, features come later, breaking changes come first. Perhaps it would be nice to actually construct a State with all of my stuff, and then make functions generic over that. Could reduce the amount of generic stuff I am producing... maybe.
Diffstat (limited to 'kittybox-rs/src/media')
-rw-r--r-- | kittybox-rs/src/media/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kittybox-rs/src/media/mod.rs b/kittybox-rs/src/media/mod.rs index 297184a..71f875e 100644 --- a/kittybox-rs/src/media/mod.rs +++ b/kittybox-rs/src/media/mod.rs @@ -25,9 +25,9 @@ impl From<MediaStoreError> for MicropubError { #[tracing::instrument(skip(blobstore))] pub(crate) async fn upload<S: MediaStore, A: AuthBackend>( - mut upload: Multipart, Extension(blobstore): Extension<S>, - user: User<A> + user: User<A>, + mut upload: Multipart ) -> Response { if !user.check_scope(&Scope::Media) { return MicropubError { |