mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-10 10:02:38 +03:00
clippy
This commit is contained in:
parent
c2c0b30b8a
commit
2c55fa5ec5
@ -3,13 +3,11 @@ use roc_builtins::std::{Mode, StdLib};
|
|||||||
use roc_can::constraint::{Constraint, LetConstraint};
|
use roc_can::constraint::{Constraint, LetConstraint};
|
||||||
use roc_can::module::ModuleOutput;
|
use roc_can::module::ModuleOutput;
|
||||||
use roc_collections::all::{ImMap, MutMap, MutSet, SendMap};
|
use roc_collections::all::{ImMap, MutMap, MutSet, SendMap};
|
||||||
use roc_module::ident::Lowercase;
|
|
||||||
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::boolean_algebra::Bool;
|
use roc_types::solved_types::{BuiltinAlias, FreeVars, SolvedType};
|
||||||
use roc_types::solved_types::{BuiltinAlias, FreeVars, SolvedBool, SolvedType};
|
|
||||||
use roc_types::subs::{VarId, VarStore, Variable};
|
use roc_types::subs::{VarId, VarStore, Variable};
|
||||||
use roc_types::types::{Alias, Problem, RecordField, Type};
|
use roc_types::types::{Alias, Problem, Type};
|
||||||
|
|
||||||
pub type SubsByModule = MutMap<ModuleId, ExposedModuleTypes>;
|
pub type SubsByModule = MutMap<ModuleId, ExposedModuleTypes>;
|
||||||
|
|
||||||
|
@ -68,8 +68,6 @@ pub enum SolvedBool {
|
|||||||
|
|
||||||
impl SolvedBool {
|
impl SolvedBool {
|
||||||
pub fn from_bool(boolean: &boolean_algebra::Bool, subs: &Subs) -> Self {
|
pub fn from_bool(boolean: &boolean_algebra::Bool, subs: &Subs) -> Self {
|
||||||
use boolean_algebra::Bool;
|
|
||||||
|
|
||||||
match boolean {
|
match boolean {
|
||||||
Bool::Shared => SolvedBool::SolvedShared,
|
Bool::Shared => SolvedBool::SolvedShared,
|
||||||
Bool::Container(cvar, mvars) => {
|
Bool::Container(cvar, mvars) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user