File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ use hickory_client::rr::RecordType;
1414use hickory_client:: udp:: UdpClientConnection ;
1515
1616use crate :: chunk:: { Value , new_string_value} ;
17- use crate :: hasher:: { new_hash_indexmap, new_set_indexmap , CoshIndexMap } ;
17+ use crate :: hasher:: { new_hash_indexmap, CoshIndexMap } ;
1818use crate :: vm:: * ;
1919
2020impl VM {
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ use std::cell::RefCell;
22use std:: rc:: Rc ;
33
44use http:: Method ;
5- use indexmap:: IndexMap ;
65use mime:: Mime ;
76use reqwest:: blocking:: { Client , Response , RequestBuilder } ;
87use reqwest:: header:: CONTENT_TYPE ;
@@ -13,7 +12,7 @@ use std::time;
1312use url:: Url ;
1413
1514use crate :: chunk:: { Value , new_string_value} ;
16- use crate :: hasher:: { new_hash_indexmap, new_set_indexmap } ;
15+ use crate :: hasher:: new_hash_indexmap;
1716use crate :: vm:: * ;
1817
1918impl VM {
Original file line number Diff line number Diff line change @@ -265,7 +265,6 @@ impl VM {
265265 return 0 ;
266266 }
267267 }
268- return 1 ;
269268 }
270269
271270 /// Takes a FileWriter object and a list of bytes as its
Original file line number Diff line number Diff line change @@ -3,11 +3,10 @@ use std::collections::VecDeque;
33use std:: convert:: TryFrom ;
44use std:: rc:: Rc ;
55
6- use indexmap:: IndexMap ;
76use num_bigint:: ToBigInt ;
87
98use crate :: chunk:: Value ;
10- use crate :: hasher:: { new_hash_indexmap, new_set_indexmap } ;
9+ use crate :: hasher:: new_hash_indexmap;
1110use crate :: vm:: * ;
1211
1312/// Converts a serde_json object into a value.
Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ impl VM {
149149 Value :: Generator ( ref mut generator_object_) => {
150150 let mut new_i = 0 ;
151151 {
152- let mut gen_res = generator_object_. try_borrow_mut ( ) ;
152+ let gen_res = generator_object_. try_borrow_mut ( ) ;
153153 if gen_res. is_err ( ) {
154154 self . print_error ( "generator shift operation already in progress" ) ;
155155 return 0 ;
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ use sysinfo::Uid;
1616
1717use crate :: chunk:: { Value , new_string_value,
1818 BufReaderWithBuffer } ;
19- use crate :: hasher:: { new_hash_indexmap, new_set_indexmap } ;
19+ use crate :: hasher:: new_hash_indexmap;
2020use crate :: vm:: * ;
2121
2222impl VM {
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ use std::rc::Rc;
1414use std:: time:: SystemTime ;
1515
1616use chrono:: { DateTime , NaiveDateTime , Utc } ;
17- use indexmap:: IndexMap ;
1817use num:: FromPrimitive ;
1918use num_bigint:: BigInt ;
2019use sysinfo:: CpuRefreshKind ;
Original file line number Diff line number Diff line change @@ -2,10 +2,8 @@ use std::cell::RefCell;
22use std:: collections:: VecDeque ;
33use std:: rc:: Rc ;
44
5- use indexmap:: IndexMap ;
6-
75use crate :: chunk:: { StringTriple , Value } ;
8- use crate :: hasher:: { new_hash_indexmap, new_set_indexmap } ;
6+ use crate :: hasher:: new_hash_indexmap;
97use crate :: vm:: * ;
108
119/// Converts a value into an XML string.
Original file line number Diff line number Diff line change @@ -3,11 +3,10 @@ use std::collections::VecDeque;
33use std:: convert:: TryFrom ;
44use std:: rc:: Rc ;
55
6- use indexmap:: IndexMap ;
76use num_bigint:: ToBigInt ;
87
98use crate :: chunk:: Value ;
10- use crate :: hasher:: { new_hash_indexmap, new_set_indexmap } ;
9+ use crate :: hasher:: new_hash_indexmap;
1110use crate :: vm:: * ;
1211
1312/// Converts a serde_yaml object into a value.
You can’t perform that action at this time.
0 commit comments