Clippy cleanup
This commit is contained in:
parent
027fa368ab
commit
ed9486c072
|
@ -90,9 +90,8 @@ pub trait ObjectType: OutputValueType {
|
||||||
where
|
where
|
||||||
Self: Send + Sync + Sized,
|
Self: Send + Sync + Sized,
|
||||||
{
|
{
|
||||||
if name == Self::type_name().as_ref() {
|
if name == Self::type_name().as_ref()
|
||||||
crate::collect_fields(ctx, self, futures)
|
|| ctx
|
||||||
} else if ctx
|
|
||||||
.registry
|
.registry
|
||||||
.implements
|
.implements
|
||||||
.get(Self::type_name().as_ref())
|
.get(Self::type_name().as_ref())
|
||||||
|
|
|
@ -163,7 +163,7 @@ pub async fn test_multiple_interfaces() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[async_std::test]
|
#[async_std::test]
|
||||||
pub async fn test_multiple_objects_in_multiple_interfaces() {
|
pub async fn test_multiple_objects_in_multiple_interfaces() {
|
||||||
struct MyObjOne;
|
struct MyObjOne;
|
||||||
|
|
||||||
#[async_graphql::Object]
|
#[async_graphql::Object]
|
||||||
|
@ -240,7 +240,7 @@ pub async fn test_multiple_interfaces() {
|
||||||
}]
|
}]
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[async_std::test]
|
#[async_std::test]
|
||||||
pub async fn test_interface_field_result() {
|
pub async fn test_interface_field_result() {
|
||||||
|
@ -286,4 +286,3 @@ pub async fn test_interface_field_result() {
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user