From 00349c0e03200fc57ebed72bee3b51d5ebb3b457 Mon Sep 17 00:00:00 2001 From: arty Date: Tue, 26 Mar 2024 23:00:42 -0700 Subject: [PATCH] fmt + clippy --- src/classic/clvm_tools/binutils.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/classic/clvm_tools/binutils.rs b/src/classic/clvm_tools/binutils.rs index 0ebe3a4c..d539a188 100644 --- a/src/classic/clvm_tools/binutils.rs +++ b/src/classic/clvm_tools/binutils.rs @@ -2,9 +2,6 @@ use std::borrow::Borrow; use std::collections::HashSet; use std::rc::Rc; -use encoding8::ascii::is_printable; -use unicode_segmentation::UnicodeSegmentation; - use clvm_rs::allocator::{Allocator, NodePtr, SExp}; use clvm_rs::reduction::EvalErr; @@ -16,11 +13,11 @@ use crate::classic::clvm_tools::ir::reader::IRReader; use crate::classic::clvm_tools::ir::writer::write_ir; lazy_static! { - pub static ref printable_chars: HashSet = + pub static ref PRINTABLE_CHARS: HashSet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ ".chars().collect(); } pub fn is_printable_string(s: &str) -> bool { - s.chars().all(|s_char| printable_chars.contains(&s_char)) + s.chars().all(|s_char| PRINTABLE_CHARS.contains(&s_char)) } pub fn assemble_from_ir(