diff options
author | Aria Shrimpton <me@aria.rip> | 2024-01-25 14:02:57 +0000 |
---|---|---|
committer | Aria Shrimpton <me@aria.rip> | 2024-01-25 14:02:57 +0000 |
commit | d5209e79032f45690f0a2806c4c1e4d7a2f6e751 (patch) | |
tree | 7c061c094bb33fd9ff606a9fb2eddca76d238d4b /src | |
parent | e1c6e49698c4f99b1a5dc052812780b70868ee00 (diff) |
lints
Diffstat (limited to 'src')
-rw-r--r-- | src/crates/primrose/src/library_specs.rs | 1 | ||||
-rw-r--r-- | src/crates/primrose/src/types.rs | 6 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/crates/primrose/src/library_specs.rs b/src/crates/primrose/src/library_specs.rs index 262fa01..35e3705 100644 --- a/src/crates/primrose/src/library_specs.rs +++ b/src/crates/primrose/src/library_specs.rs @@ -10,7 +10,6 @@ use std::path::Path; use log::debug; -use crate::analysis::EXTRAREQUIRE; use crate::analysis::REQUIRE; use crate::spec_map::{Bounds, LibSpecs, ProvidedOps}; diff --git a/src/crates/primrose/src/types.rs b/src/crates/primrose/src/types.rs index 8d36c03..0d9ccf6 100644 --- a/src/crates/primrose/src/types.rs +++ b/src/crates/primrose/src/types.rs @@ -205,9 +205,9 @@ impl TypeVar { } } -impl Into<Type> for TypeVar { - fn into(self) -> Type { - Type::Var(self) +impl From<TypeVar> for Type { + fn from(value: TypeVar) -> Self { + Type::Var(value) } } |