Skip to content

Commit

Permalink
fix cli useless clone.
Browse files Browse the repository at this point in the history
  • Loading branch information
gogo2464 committed Aug 28, 2023
1 parent 87c8a2e commit 605a6d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cryptatools-cli/src/statistical_cryptanalysis/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ fn main() {
let mut current_opcode: String = String::from("");
for o in 0..opcodes.len() {
if current_opcode.len() < 2 {
current_opcode.push_str(&String::from(opcodes.clone().chars().nth(o).unwrap()).clone());
current_opcode.push_str(&String::from(opcodes.chars().nth(o).unwrap()).clone());
}

if current_opcode.len() == 2 {
Expand Down

0 comments on commit 605a6d0

Please sign in to comment.