Removed import for new prelude members: TryFrom, TryInto, FromIterator
This commit is contained in:
parent
6e71fac257
commit
30009005d1
|
@ -316,11 +316,11 @@ fn generate_default_value(lit: &Lit) -> GeneratorResult<TokenStream> {
|
||||||
}
|
}
|
||||||
Lit::Int(value) => {
|
Lit::Int(value) => {
|
||||||
let value = value.base10_parse::<i32>()?;
|
let value = value.base10_parse::<i32>()?;
|
||||||
Ok(quote!({ ::std::convert::TryInto::try_into(#value).unwrap() }))
|
Ok(quote!({ ::TryInto::try_into(#value).unwrap() }))
|
||||||
}
|
}
|
||||||
Lit::Float(value) => {
|
Lit::Float(value) => {
|
||||||
let value = value.base10_parse::<f64>()?;
|
let value = value.base10_parse::<f64>()?;
|
||||||
Ok(quote!({ ::std::convert::TryInto::try_into(#value) }))
|
Ok(quote!({ ::TryInto::try_into(#value) }))
|
||||||
}
|
}
|
||||||
Lit::Bool(value) => {
|
Lit::Bool(value) => {
|
||||||
let value = value.value;
|
let value = value.value;
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
use std::convert::TryFrom;
|
|
||||||
|
|
||||||
use axum::body::Body;
|
use axum::body::Body;
|
||||||
use axum::response::IntoResponse;
|
use axum::response::IntoResponse;
|
||||||
use headers::HeaderName;
|
use headers::HeaderName;
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
use std::convert::TryInto;
|
|
||||||
use std::io;
|
use std::io;
|
||||||
use std::io::ErrorKind;
|
use std::io::ErrorKind;
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::convert::TryFrom;
|
|
||||||
|
|
||||||
use crate::parser::types::{Field, FragmentDefinition, Selection, SelectionSet};
|
use crate::parser::types::{Field, FragmentDefinition, Selection, SelectionSet};
|
||||||
use crate::Context;
|
use crate::Context;
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
use std::any::Any;
|
use std::any::Any;
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::convert::TryFrom;
|
|
||||||
use std::fmt::{self, Debug, Formatter};
|
use std::fmt::{self, Debug, Formatter};
|
||||||
|
|
||||||
use serde::{Deserialize, Deserializer, Serialize};
|
use serde::{Deserialize, Deserializer, Serialize};
|
||||||
|
|
1
src/types/external/list/array.rs
vendored
1
src/types/external/list/array.rs
vendored
|
@ -1,5 +1,4 @@
|
||||||
use std::borrow::Cow;
|
use std::borrow::Cow;
|
||||||
use std::convert::TryInto;
|
|
||||||
|
|
||||||
use crate::parser::types::Field;
|
use crate::parser::types::Field;
|
||||||
use crate::resolver_utils::resolve_list;
|
use crate::resolver_utils::resolve_list;
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
use std::convert::TryFrom;
|
|
||||||
use std::num::ParseIntError;
|
use std::num::ParseIntError;
|
||||||
use std::ops::{Deref, DerefMut};
|
use std::ops::{Deref, DerefMut};
|
||||||
|
|
||||||
|
|
|
@ -11,9 +11,7 @@ mod variables;
|
||||||
|
|
||||||
use std::borrow::{Borrow, Cow};
|
use std::borrow::{Borrow, Cow};
|
||||||
use std::collections::BTreeMap;
|
use std::collections::BTreeMap;
|
||||||
use std::convert::{TryFrom, TryInto};
|
|
||||||
use std::fmt::{self, Display, Formatter, Write};
|
use std::fmt::{self, Display, Formatter, Write};
|
||||||
use std::iter::FromIterator;
|
|
||||||
use std::ops::Deref;
|
use std::ops::Deref;
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user