From 2f8a530612c800fa3c7e7b9552f484bc823ae493 Mon Sep 17 00:00:00 2001 From: imxyy_soope_ Date: Sat, 3 May 2025 20:38:01 +0800 Subject: [PATCH] chore: remove dead code --- src/builtins/mod.rs | 2 -- src/ty/internal/cnst.rs | 2 -- src/ty/public/cnst.rs | 2 +- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/builtins/mod.rs b/src/builtins/mod.rs index 7db747d..344a6c7 100644 --- a/src/builtins/mod.rs +++ b/src/builtins/mod.rs @@ -1,5 +1,3 @@ -use derive_more::Constructor; - use crate::vm::Env; use crate::ty::internal::{Const, Value, AttrSet, PrimOp}; use crate::ty::common::Symbol; diff --git a/src/ty/internal/cnst.rs b/src/ty/internal/cnst.rs index 05f2745..af022ed 100644 --- a/src/ty/internal/cnst.rs +++ b/src/ty/internal/cnst.rs @@ -1,5 +1,3 @@ -use std::hash::{Hash, Hasher}; - use anyhow::Error; use derive_more::{IsVariant, Unwrap}; diff --git a/src/ty/public/cnst.rs b/src/ty/public/cnst.rs index 4d1def7..4527555 100644 --- a/src/ty/public/cnst.rs +++ b/src/ty/public/cnst.rs @@ -23,7 +23,7 @@ impl From for Const { Int(int) => Const::Int(int), Float(float) => Const::Float(float), String(string) => Const::String(string), - Func(func) => Const::Func + Func(_) => Const::Func } } }