Remove unnecessary 'Rc' in function signature.

This commit is contained in:
KtorZ 2023-11-25 13:09:26 +01:00
parent 1ca81ec133
commit 4adedaac15
No known key found for this signature in database
GPG Key ID: 33173CB6F77F4277
1 changed files with 3 additions and 3 deletions

View File

@ -1131,15 +1131,15 @@ fn suggest_constructor_pattern(
}
fn suggest_unify(
expected: &Rc<Type>,
given: &Rc<Type>,
expected: &Type,
given: &Type,
situation: &Option<UnifyErrorSituation>,
rigid_type_names: &HashMap<u64, String>,
) -> String {
let expected_str = expected.to_pretty_with_names(rigid_type_names.clone(), 0);
let given_str = given.to_pretty_with_names(rigid_type_names.clone(), 0);
let (expected, given) = match (expected.as_ref(), given.as_ref()) {
let (expected, given) = match (expected, given) {
(
Type::App {
module: expected_module,