Skip to content

Commit 9bd4cb6

Browse files
committed
Fix codegen tests
1 parent d5cc023 commit 9bd4cb6

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

juniper/src/value/scalar.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ pub trait ScalarValue:
350350
///
351351
/// # Implementation
352352
///
353-
/// This method is an ergonomic alias for the [`TryToPrimitive<bool>`] conversion, which is used
353+
/// This method is an ergonomic alias for the [`TryToPrimitive<bool>`] conversion, which is used
354354
/// for implementing [`GraphQLValue`] for [`bool`] for all possible [`ScalarValue`]s.
355355
///
356356
/// Implementations should not implement this method, but rather implement the
@@ -367,7 +367,7 @@ pub trait ScalarValue:
367367
///
368368
/// # Implementation
369369
///
370-
/// This method is an ergonomic alias for the [`TryToPrimitive<i32>`] conversion, which is used
370+
/// This method is an ergonomic alias for the [`TryToPrimitive<i32>`] conversion, which is used
371371
/// for implementing [`GraphQLValue`] for [`i32`] for all possible [`ScalarValue`]s.
372372
///
373373
/// Implementations should not implement this method, but rather implement the
@@ -385,7 +385,7 @@ pub trait ScalarValue:
385385
///
386386
/// # Implementation
387387
///
388-
/// This method is an ergonomic alias for the [`TryToPrimitive<f64>`] conversion, which is used
388+
/// This method is an ergonomic alias for the [`TryToPrimitive<f64>`] conversion, which is used
389389
/// for implementing [`GraphQLValue`] for [`f64`] for all possible [`ScalarValue`]s.
390390
///
391391
/// Implementations should not implement this method, but rather implement the
@@ -441,7 +441,7 @@ pub trait ScalarValue:
441441
///
442442
/// # Implementation
443443
///
444-
/// This method is an ergonomic alias for the [`TryToPrimitive`]`<&`[`str`]`>` conversion, which
444+
/// This method is an ergonomic alias for the [`TryToPrimitive`]`<&`[`str`]`>` conversion, which
445445
/// is used for implementing [`GraphQLValue`] for [`String`] for all possible [`ScalarValue`]s.
446446
///
447447
/// Implementations should not implement this method, but rather implement the

juniper_codegen/src/scalar_value/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ impl Definition {
274274
let (_, ty_gens, where_clause) = self.generics.split_for_impl();
275275

276276
let ref_lt = quote! { '___a };
277-
// We don't impose additional bounds on generic parameters,
277+
// We don't impose additional bounds on generic parameters,
278278
// because `ScalarValue` itself has `'static` bound.
279279
let mut generics = self.generics.clone();
280280
generics.params.push(parse_quote! { #ref_lt });
@@ -326,7 +326,7 @@ impl Definition {
326326
});
327327
Some(quote! {
328328
#[automatically_derived]
329-
impl #lt_impl_gens ::juniper::TryToPrimitive<#ref_lt, #as_ty> for #ty_ident #ty_gens
329+
impl #lt_impl_gens ::juniper::TryToPrimitive<#ref_lt, #as_ty> for #ty_ident #ty_gens
330330
#where_clause
331331
{
332332
type Error = ::juniper::WrongInputScalarTypeError<#ref_lt, #ty_ident #ty_gens>;
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
error[E0277]: the trait bound `for<'a> DefaultScalarValue: TryScalarValueTo<'a, i32>` is not satisfied
1+
error[E0277]: the trait bound `for<'a> DefaultScalarValue: TryToPrimitive<'a, i32>` is not satisfied
22
--> fail/scalar_value/missing_attributes.rs:6:10
33
|
44
6 | pub enum DefaultScalarValue {
5-
| ^^^^^^^^^^^^^^^^^^ the trait `for<'a> TryScalarValueTo<'a, i32>` is not implemented for `DefaultScalarValue`
5+
| ^^^^^^^^^^^^^^^^^^ the trait `for<'a> TryToPrimitive<'a, i32>` is not implemented for `DefaultScalarValue`
66
|
7-
= help: the following other types implement trait `TryScalarValueTo<'me, T>`:
8-
`DefaultScalarValue` implements `TryScalarValueTo<'_, &str>`
9-
`DefaultScalarValue` implements `TryScalarValueTo<'_, bool>`
10-
`DefaultScalarValue` implements `TryScalarValueTo<'_, f64>`
11-
`DefaultScalarValue` implements `TryScalarValueTo<'_, std::string::String>`
7+
= help: the following other types implement trait `TryToPrimitive<'me, T>`:
8+
`DefaultScalarValue` implements `TryToPrimitive<'_, &str>`
9+
`DefaultScalarValue` implements `TryToPrimitive<'_, bool>`
10+
`DefaultScalarValue` implements `TryToPrimitive<'_, f64>`
11+
`DefaultScalarValue` implements `TryToPrimitive<'_, std::string::String>`

0 commit comments

Comments
 (0)