mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 08:11:12 +00:00
Apply lint suggestions
This commit is contained in:
parent
65f1bd2907
commit
5e35b6458a
1 changed files with 5 additions and 3 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
#![allow(clippy::too_many_arguments)]
|
||||||
|
|
||||||
use crate::ability::{
|
use crate::ability::{
|
||||||
resolve_ability_specialization, type_implementing_specialization, AbilityImplError,
|
resolve_ability_specialization, type_implementing_specialization, AbilityImplError,
|
||||||
CheckedDerives, ObligationCache, PendingDerivesTable, Resolved,
|
CheckedDerives, ObligationCache, PendingDerivesTable, Resolved,
|
||||||
|
@ -2742,11 +2744,11 @@ fn type_to_variable<'a>(
|
||||||
}
|
}
|
||||||
|
|
||||||
for (Loc { value: var, region }, ability) in bind_to_ability {
|
for (Loc { value: var, region }, ability) in bind_to_ability {
|
||||||
match subs.get_content_unchecked(var) {
|
match *subs.get_content_unchecked(var) {
|
||||||
&Content::RigidVar(a) => {
|
Content::RigidVar(a) => {
|
||||||
subs.set_content(var, Content::RigidAbleVar(a, ability));
|
subs.set_content(var, Content::RigidAbleVar(a, ability));
|
||||||
}
|
}
|
||||||
&Content::RigidAbleVar(_, ab) if ab == ability => {
|
Content::RigidAbleVar(_, ab) if ab == ability => {
|
||||||
// pass, already bound
|
// pass, already bound
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue