change import for rust analyzer

This commit is contained in:
Anton-4 2021-12-09 14:55:43 +01:00
parent a1dc13b352
commit cf80f510cb
2 changed files with 3 additions and 3 deletions

1
cli_utils/Cargo.lock generated
View file

@ -2679,6 +2679,7 @@ dependencies = [
"roc_collections", "roc_collections",
"roc_module", "roc_module",
"roc_mono", "roc_mono",
"roc_reporting",
"roc_std", "roc_std",
] ]

View file

@ -14,9 +14,8 @@ use roc_module::ident::{Lowercase, TagName};
use roc_module::symbol::{ModuleId, Symbol}; use roc_module::symbol::{ModuleId, Symbol};
use roc_region::all::{Located, Region}; use roc_region::all::{Located, Region};
use roc_types::subs::Variable; use roc_types::subs::Variable;
use roc_types::types::AnnotationSource::{self, *};
use roc_types::types::Type::{self, *}; use roc_types::types::Type::{self, *};
use roc_types::types::{Category, PReason, Reason, RecordField}; use roc_types::types::{AnnotationSource, Category, PReason, Reason, RecordField};
/// This is for constraining Defs /// This is for constraining Defs
#[derive(Default, Debug)] #[derive(Default, Debug)]
@ -604,7 +603,7 @@ pub fn constrain_expr(
FromAnnotation( FromAnnotation(
name.clone(), name.clone(),
*arity, *arity,
TypedWhenBranch { AnnotationSource::TypedWhenBranch {
index: Index::zero_based(index), index: Index::zero_based(index),
region: ann_source.region(), region: ann_source.region(),
}, },