diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8c1ccb1..871900d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - rust: [nightly, beta, stable, 1.62.0] + rust: [nightly, beta, stable, 1.64.0] timeout-minutes: 45 steps: - uses: actions/checkout@v4 @@ -71,7 +71,9 @@ jobs: with: components: rust-src - uses: dtolnay/install@cargo-docs-rs - - run: cargo docs-rs + - run: | + cargo docs-rs -p rusty-injector + cargo docs-rs -p rusty-injector-macros clippy: name: Clippy diff --git a/Cargo.toml b/Cargo.toml index 100b4b6..d68d984 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ members = [ ] [workspace.package] -rust-version = "1.62" +rust-version = "1.64" edition = "2021" authors = ["Arvid Gerstmann "] homepage = "https://github.com/Leandros/rusty-injector" diff --git a/rusty-injector-macros/src/attr.rs b/rusty-injector-macros/src/attr.rs index c2cf35d..7f7619e 100644 --- a/rusty-injector-macros/src/attr.rs +++ b/rusty-injector-macros/src/attr.rs @@ -1,7 +1,7 @@ #![allow(dead_code)] use darling::ast::Fields; use darling::{util, FromDeriveInput, FromField}; -use syn::{Ident, Type}; +use syn::Type; #[cfg(test)] #[path = "./attr_tests.rs"] @@ -64,10 +64,9 @@ pub struct DeriveAttrInput { impl DeriveAttrInput { pub fn fields(&self) -> Fields { - self.data - .clone() - .take_struct() - .expect("only structs supported. this should be enforced by darling.") + self.data.clone().take_struct().expect( + "only structs supported. this should be enforced by darling.", + ) } pub fn transient(&self) -> &Option { diff --git a/rusty-injector-macros/src/lib.rs b/rusty-injector-macros/src/lib.rs index 4fe69bb..17ae3b8 100644 --- a/rusty-injector-macros/src/lib.rs +++ b/rusty-injector-macros/src/lib.rs @@ -4,10 +4,7 @@ use darling::FromDeriveInput; use quote::{format_ident, quote}; use syn::punctuated::Punctuated; use syn::token::Comma; -use syn::{ - parse_macro_input, Data, DataStruct, DeriveInput, Field, Fields, Ident, - Type, -}; +use syn::{parse_macro_input, Data, DeriveInput, Field, Fields, Type}; use self::attr::DeriveAttrInput;