Remove incorrect never! invocations

This commit is contained in:
Lukas Wirth 2024-07-22 10:53:18 +02:00
parent 232e55515f
commit 5806950712
2 changed files with 2 additions and 3 deletions

View file

@ -134,9 +134,9 @@ impl HirDisplay for Function {
.as_ref() .as_ref()
.unwrap() .unwrap()
} }
_ => panic!("Async fn ret_type should be impl Future"), _ => &TypeRef::Error,
}, },
_ => panic!("Async fn ret_type should be impl Future"), _ => &TypeRef::Error,
} }
}; };

View file

@ -1977,7 +1977,6 @@ impl Function {
return Type::new_with_resolver_inner(db, &resolver, output_eq.ty).into(); return Type::new_with_resolver_inner(db, &resolver, output_eq.ty).into();
} }
} }
never!("Async fn ret_type should be impl Future");
None None
} }