Clippy clean
This commit is contained in:
parent
52d3e50af5
commit
548fb1ea4e
|
@ -317,15 +317,9 @@ pub async fn test_entity_shareable() {
|
|||
|
||||
let schema_sdl = Schema::new(Query, EmptyMutation, EmptySubscription)
|
||||
.sdl_with_options(SDLExportOptions::new().federation());
|
||||
assert_eq!(
|
||||
schema_sdl.contains("fieldShareableA: Int! @shareable"),
|
||||
true
|
||||
);
|
||||
assert!(schema_sdl.contains("fieldShareableA: Int! @shareable"),);
|
||||
|
||||
assert_eq!(
|
||||
schema_sdl.contains(r#"MyObjShareable @key(fields: "id") @shareable"#),
|
||||
true
|
||||
);
|
||||
assert!(schema_sdl.contains(r#"MyObjShareable @key(fields: "id") @shareable"#),);
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
|
@ -348,10 +342,7 @@ pub async fn test_field_override_directive() {
|
|||
|
||||
let schema_sdl = Schema::new(Query, EmptyMutation, EmptySubscription)
|
||||
.sdl_with_options(SDLExportOptions::new().federation());
|
||||
assert_eq!(
|
||||
schema_sdl.contains("fieldOverrideA: Int! @override(from: \"AnotherSubgraph\")"),
|
||||
true
|
||||
);
|
||||
assert!(schema_sdl.contains("fieldOverrideA: Int! @override(from: \"AnotherSubgraph\")"),);
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
|
|
|
@ -454,6 +454,7 @@ pub async fn test_both_input_output_flatten() {
|
|||
#[derive(SimpleObject, InputObject)]
|
||||
#[graphql(input_name = "ABCInput")]
|
||||
#[graphql(name = "ABC")]
|
||||
#[allow(clippy::upper_case_acronyms)]
|
||||
struct ABC {
|
||||
a: i32,
|
||||
#[graphql(flatten)]
|
||||
|
|
Loading…
Reference in New Issue