Skip to content

Commit

Permalink
chore: fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Leandros committed Oct 8, 2024
1 parent 1da93b5 commit 9f722c2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ members = [
]

[workspace.package]
rust-version = "1.62"
rust-version = "1.64"
edition = "2021"
authors = ["Arvid Gerstmann <[email protected]>"]
homepage = "https://github.com/Leandros/rusty-injector"
Expand Down
9 changes: 4 additions & 5 deletions rusty-injector-macros/src/attr.rs
Original file line number Diff line number Diff line change
@@ -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"]
Expand Down Expand Up @@ -64,10 +64,9 @@ pub struct DeriveAttrInput {

impl DeriveAttrInput {
pub fn fields(&self) -> Fields<DeriveField> {
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<Type> {
Expand Down
5 changes: 1 addition & 4 deletions rusty-injector-macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 9f722c2

Please sign in to comment.