From d1911ff6000bdaa8d1f6bd37c194c39b255111c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?VIAL=20S=C3=A9bastien?= Date: Sat, 25 Nov 2023 20:39:47 +0100 Subject: [PATCH] fix(graphql): error in metatype --- src/lib.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 4bf744a..417044a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -52,7 +52,6 @@ use async_graphql::{registry::MetaType, registry::MetaTypeId, registry::Registry #[cfg(feature = "serde")] use serde::{Deserialize, Serialize}; use std::{ - borrow::Cow, fmt::{Debug, Display}, marker::PhantomData, }; @@ -175,14 +174,14 @@ impl Into for Password { impl InputType for Password { type RawValueType = String; - fn type_name() -> Cow<'static, str> { - Cow::Borrowed("Password") + fn type_name() -> std::borrow::Cow<'static, str> { + std::borrow::Cow::Borrowed("Password") } fn create_type_info(registry: &mut Registry) -> String { - registry.create_input_type(MetaTypeId::Scalar, |_| MetaType::Scalar { + registry.create_input_type::, _>(MetaTypeId::Scalar, |_| MetaType::Scalar { name: "Password".into(), - description: "A type used internally to represent a password.".into(), + description: Some("A type used internally to represent a password.".into()), is_valid: None, visible: None, inaccessible: false,