Skip to content

Commit 9c7cbab

Browse files
committed
fix lints
1 parent c382489 commit 9c7cbab

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

sqlx-macros-core/src/derives/attributes.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
use proc_macro2::{Ident, Span, TokenStream};
22
use quote::quote_spanned;
33
use syn::{
4-
parenthesized, punctuated::Punctuated, token::Comma, Attribute, DeriveInput, Field, LitStr, Meta, Token, Type, Variant
4+
parenthesized, punctuated::Punctuated, token::Comma, Attribute, DeriveInput, Field, LitStr,
5+
Meta, Token, Type, Variant,
56
};
67

78
macro_rules! assert_attribute {
@@ -62,7 +63,7 @@ pub struct SqlxContainerAttributes {
6263

6364
pub enum JsonAttribute {
6465
NonNullable,
65-
Nullable
66+
Nullable,
6667
}
6768

6869
pub struct SqlxChildAttributes {

tests/mysql/macros.rs

+1
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,7 @@ async fn test_from_row_json_attr() -> anyhow::Result<()> {
497497
#[sqlx_macros::test]
498498
async fn test_from_row_json_attr_nullable() -> anyhow::Result<()> {
499499
#[derive(serde::Deserialize)]
500+
#[expect(dead_code)]
500501
struct J {
501502
a: u32,
502503
b: u32,

0 commit comments

Comments
 (0)