Skip to content

Commit

Permalink
chore: cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
gengteng committed Jun 20, 2024
1 parent 39968be commit 1646fc2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
**axum-serde** is a library that provides multiple serde-based extractors / responses for the Axum web framework. It
also offers a macro to easily customize extractors and responses without writing much boilerplate code.

If you were using crates like **axum-yaml**, **axum-msgpack** etc. in axum 0.6 and wish to upgrade to axum 0.7, *
*axum-serde** can be used as a replacement to simplify the migration, without having to modify existing code too much.
If you were using crates like **axum-yaml**, **axum-msgpack** etc. in axum 0.6 and wish to upgrade to axum 0.7,
**axum-serde** can be used as a replacement to simplify the migration, without having to modify existing code too much.

## 🚀 Basic usage

Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ pub mod cbor;
use http::{header, HeaderMap};
use mime::Mime;

#[cfg(feature = "cbor")]
pub use cbor::Cbor;
#[cfg(feature = "msgpack")]
pub use msgpack::{MsgPack, MsgPackRaw};
pub use rejection::Rejection;
Expand All @@ -31,8 +33,6 @@ pub use toml::Toml;
pub use xml::Xml;
#[cfg(feature = "yaml")]
pub use yaml::Yaml;
#[cfg(feature = "cbor")]
pub use cbor::Cbor;

/// Checks if the content type in the given headers matches the expected content type.
///
Expand Down
4 changes: 2 additions & 2 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
pub use async_trait::async_trait;
pub use axum_core::{
extract::{FromRequest, Request},
response::{IntoResponse, Response}
response::{IntoResponse, Response},
};
pub use http;
pub use bytes::Bytes;
pub use http;
pub use mime;
pub use serde::{de::DeserializeOwned, Deserialize, Serialize};

Expand Down

0 comments on commit 1646fc2

Please sign in to comment.