Clippy clean
This commit is contained in:
parent
f2e25c9f4a
commit
7707a45eaa
|
@ -1,12 +1,12 @@
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
newline_style = "unix"
|
newline_style = "Unix"
|
||||||
# comments
|
# comments
|
||||||
normalize_comments=true
|
normalize_comments = true
|
||||||
wrap_comments=true
|
wrap_comments = true
|
||||||
format_code_in_doc_comments=true
|
format_code_in_doc_comments = true
|
||||||
# imports
|
# imports
|
||||||
imports_granularity="Crate"
|
imports_granularity = "Crate"
|
||||||
group_imports="StdExternalCrate"
|
group_imports = "StdExternalCrate"
|
||||||
# report
|
# report
|
||||||
#report_fixme="Unnumbered"
|
#report_fixme="Unnumbered"
|
||||||
#report_todo="Unnumbered"
|
#report_todo="Unnumbered"
|
||||||
|
|
|
@ -12,6 +12,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
- Add `bson-uuid` feature to implement `ScalarType` for `bson::Uuid`. [#875](https://github.com/async-graphql/async-graphql/pull/875)
|
- Add `bson-uuid` feature to implement `ScalarType` for `bson::Uuid`. [#875](https://github.com/async-graphql/async-graphql/pull/875)
|
||||||
- Bump `regex` crate from `1.4.5` to `1.5.5`. [#862](https://github.com/async-graphql/async-graphql/pull/862)
|
- Bump `regex` crate from `1.4.5` to `1.5.5`. [#862](https://github.com/async-graphql/async-graphql/pull/862)
|
||||||
- Bump `chrono-tz` crate from `0.5.3` to `0.6.1`. [#831](https://github.com/async-graphql/async-graphql/pull/831)
|
- Bump `chrono-tz` crate from `0.5.3` to `0.6.1`. [#831](https://github.com/async-graphql/async-graphql/pull/831)
|
||||||
|
- Move the pest parser code generation step into a test. [#901](https://github.com/async-graphql/async-graphql/pull/901)
|
||||||
|
- Update `log` to version `0.4.16`. [#903](https://github.com/async-graphql/async-graphql/pull/903)
|
||||||
|
- Added impl of `CursorType` for floats [#897](https://github.com/async-graphql/async-graphql/pull/897)
|
||||||
|
|
||||||
# [3.0.38] 2022-4-8
|
# [3.0.38] 2022-4-8
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -2,11 +2,12 @@
|
||||||
//!
|
//!
|
||||||
//! This module's structure mirrors `types`.
|
//! This module's structure mirrors `types`.
|
||||||
|
|
||||||
|
use std::collections::{hash_map, HashMap};
|
||||||
|
|
||||||
use pest::{
|
use pest::{
|
||||||
iterators::{Pair, Pairs},
|
iterators::{Pair, Pairs},
|
||||||
Parser,
|
Parser,
|
||||||
};
|
};
|
||||||
use pest_derive::Parser;
|
|
||||||
use utils::*;
|
use utils::*;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
|
@ -16,6 +17,7 @@ use crate::{
|
||||||
};
|
};
|
||||||
|
|
||||||
mod executable;
|
mod executable;
|
||||||
|
#[allow(clippy::redundant_static_lifetimes)]
|
||||||
mod generated;
|
mod generated;
|
||||||
mod service;
|
mod service;
|
||||||
mod utils;
|
mod utils;
|
||||||
|
|
|
@ -18,13 +18,11 @@ use super::GraphQLParser;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn generated_code_is_fresh() {
|
fn generated_code_is_fresh() {
|
||||||
let input = format!(
|
let input = r###"
|
||||||
r###"
|
|
||||||
#[derive(Parser)]
|
#[derive(Parser)]
|
||||||
#[grammar = r#"graphql.pest"#]
|
#[grammar = r#"graphql.pest"#]
|
||||||
struct GraphQLParser;
|
struct GraphQLParser;
|
||||||
"###,
|
"###
|
||||||
)
|
|
||||||
.parse::<proc_macro2::TokenStream>()
|
.parse::<proc_macro2::TokenStream>()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
use std::convert::Infallible;
|
use std::{
|
||||||
use std::fmt::Display;
|
convert::Infallible,
|
||||||
use std::num::{ParseFloatError, ParseIntError};
|
fmt::Display,
|
||||||
|
num::{ParseFloatError, ParseIntError},
|
||||||
|
};
|
||||||
|
|
||||||
use crate::ID;
|
use crate::ID;
|
||||||
|
|
||||||
|
|
|
@ -222,7 +222,7 @@ where
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
///
|
///
|
||||||
/// use async_graphql::*;
|
/// use async_graphql::*;
|
||||||
/// use async_graphql::types::connection::*;
|
/// use async_graphql::types::connection::*;
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in New Issue
Block a user