Clippy clean

This commit is contained in:
Sunli 2022-09-20 09:33:16 +08:00
parent 52d3e50af5
commit 548fb1ea4e
2 changed files with 4 additions and 12 deletions

View File

@ -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]

View File

@ -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)]