Skip to content

Commit ea165a4

Browse files
committed
fix: use spaces in doc comments
1 parent 90fcc07 commit ea165a4

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

rustfmt.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ newline_style = "Unix"
55
group_imports = "StdExternalCrate"
66
imports_granularity = "Crate"
77

8-
format_code_in_doc_comments = true
98
format_macro_matchers = true
109
format_strings = true
1110
hex_literal_case = "Lower"

src/content.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -235,16 +235,16 @@ impl<S> FromRequestParts<S> for ContentType {
235235
/// #
236236
/// #[axum_codec::apply(encode)]
237237
/// struct User {
238-
/// name: String,
239-
/// age: u8,
238+
/// name: String,
239+
/// age: u8,
240240
/// }
241241
///
242242
/// fn get_user(accept: Accept) -> impl IntoResponse {
243-
/// Codec(User {
244-
/// name: "Alice".into(),
245-
/// age: 42,
246-
/// })
247-
/// .to_response(accept)
243+
/// Codec(User {
244+
/// name: "Alice".into(),
245+
/// age: 42,
246+
/// })
247+
/// .to_response(accept)
248248
/// }
249249
/// #
250250
/// # fn main() {}

src/extract.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ use crate::{Accept, CodecDecode, CodecEncode, CodecRejection, ContentType, IntoC
3333
/// # fn main() {
3434
/// #[axum_codec::apply(decode)]
3535
/// struct Greeting {
36-
/// hello: String,
36+
/// hello: String,
3737
/// }
3838
///
3939
/// let bytes = b"{\"hello\": \"world\"}";

0 commit comments

Comments
 (0)