Make some comments clearer. (#665)

This commit is contained in:
Teymour Aldridge 2020-05-24 07:29:58 +01:00 committed by GitHub
parent 2cb96d0fc4
commit 31d08888e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -261,7 +261,7 @@ where
} }
fn from_str<'a>(value: ScalarToken<'a>) -> ParseScalarResult<'a, S> { fn from_str<'a>(value: ScalarToken<'a>) -> ParseScalarResult<'a, S> {
// Bools are parsed on it's own. This should not hit this code path // Bools are parsed separately - they shouldn't reach this code path
Err(ParseError::UnexpectedToken(Token::Scalar(value))) Err(ParseError::UnexpectedToken(Token::Scalar(value)))
} }
} }
@ -338,7 +338,7 @@ impl<T> EmptyMutation<T> {
} }
} }
// This is safe due to never using `T`. // This is safe because `T` is never used.
unsafe impl<T> Send for EmptyMutation<T> {} unsafe impl<T> Send for EmptyMutation<T> {}
impl<S, T> GraphQLType<S> for EmptyMutation<T> impl<S, T> GraphQLType<S> for EmptyMutation<T>