Skip to content

Commit

Permalink
fmt + clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
prozacchiwawa committed Mar 27, 2024
1 parent 8213da0 commit 00349c0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/classic/clvm_tools/binutils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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<char> =
pub static ref PRINTABLE_CHARS: HashSet<char> =
"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(
Expand Down

0 comments on commit 00349c0

Please sign in to comment.