ef7a7e8229
- set 1.62 Rust as MSRV - use new fmt syntax where possible - refactor `.to_owned()`, `.to_string()` and `.into()` usage - rename `IntoResolvable::into()` as `IntoResolvable::into_resolvable()` to disambiguate with `Into::into()` - use `#[derive(Default)]` for enums where possible - use `bool::then_some()` where possible
7 lines
187 B
Rust
7 lines
187 B
Rust
use juniper_rocket::GraphQLResponse;
|
|
use rocket::http::Status;
|
|
|
|
#[test]
|
|
fn test_graphql_response_is_public() {
|
|
let _ = GraphQLResponse(Status::Unauthorized, "Unauthorized".into());
|
|
}
|