From 335fc2e4541fad05792920dc2f8e55392d08bb8b Mon Sep 17 00:00:00 2001 From: Jeff Date: Thu, 26 Oct 2023 21:23:39 -0400 Subject: [PATCH] Clean up --- src/abstract_tree/remove.rs | 2 +- src/main.rs | 2 +- src/value/map.rs | 7 ++----- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/abstract_tree/remove.rs b/src/abstract_tree/remove.rs index ca06dcb..52c8bbf 100644 --- a/src/abstract_tree/remove.rs +++ b/src/abstract_tree/remove.rs @@ -1,7 +1,7 @@ use serde::{Deserialize, Serialize}; use tree_sitter::Node; -use crate::{AbstractTree, Expression, Identifier, Item, List, Map, Result, Value}; +use crate::{AbstractTree, Expression, Identifier, Item, Map, Result, Value}; #[derive(Debug, Clone, Serialize, Deserialize, Eq, PartialEq, PartialOrd, Ord)] pub struct Remove { diff --git a/src/main.rs b/src/main.rs index 9c88860..68af46e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -11,7 +11,7 @@ use rustyline::{ use std::{borrow::Cow, fs::read_to_string}; -use dust_lang::{evaluate, evaluate_with_context, Map, Value}; +use dust_lang::{evaluate_with_context, Map, Value}; /// Command-line arguments to be parsed. #[derive(Parser, Debug)] diff --git a/src/value/map.rs b/src/value/map.rs index 00bcfdd..6554375 100644 --- a/src/value/map.rs +++ b/src/value/map.rs @@ -1,12 +1,9 @@ -use rayon::collections::btree_map; -use reqwest::header::ACCESS_CONTROL_EXPOSE_HEADERS; -use serde::{Deserialize, Serialize}; +use serde::Serialize; use std::{ cmp::Ordering, collections::BTreeMap, fmt::{self, Display, Formatter}, - marker::PhantomData, - sync::{Arc, RwLock, RwLockReadGuard}, + sync::{Arc, RwLock}, }; use crate::{value::Value, Error, List, Result, Table};