chore: more clippy

This commit is contained in:
rvcas
2023-02-01 13:23:17 -05:00
committed by Lucas
parent a365649360
commit 99c1c880b0
5 changed files with 12 additions and 11 deletions

View File

@@ -87,10 +87,10 @@ impl Hydrator {
self.rigid_type_names.clone()
}
pub fn type_from_option_annotation<'a>(
pub fn type_from_option_annotation(
&mut self,
ast: &Option<Annotation>,
environment: &mut Environment<'a>,
environment: &mut Environment,
) -> Result<Arc<Type>, Error> {
match ast {
Some(ast) => self.type_from_annotation(ast, environment),
@@ -100,10 +100,10 @@ impl Hydrator {
/// Construct a Type from an AST Type annotation.
///
pub fn type_from_annotation<'a>(
pub fn type_from_annotation(
&mut self,
annotation: &Annotation,
environment: &mut Environment<'a>,
environment: &mut Environment,
) -> Result<Arc<Type>, Error> {
match annotation {
Annotation::Constructor {