Skip to content

Commit

Permalink
argon2: run formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
Jujumba authored and TheBestTvarynka committed Mar 27, 2024
1 parent c8f1974 commit 74fb406
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/crypto_helper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use yew::{function_component, html, use_effect_with, use_state, Callback, Html};
use yew_hooks::{use_clipboard, use_local_storage, use_location};
use yew_notifications::{use_notification, Notification, NotificationType};

use self::computations::{process_krb_cipher, process_krb_hmac, process_rsa, process_zlib, process_argon2};
use self::computations::{process_argon2, process_krb_cipher, process_krb_hmac, process_rsa, process_zlib};
use crate::crypto_helper::computations::process_bcrypt;
use crate::url_query_params::generate_crypto_helper_link;

Expand Down
1 change: 0 additions & 1 deletion src/crypto_helper/algorithm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,6 @@ pub enum ZlibMode {
Compress,
Decompress,
}

impl From<ZlibMode> for bool {
fn from(mode: ZlibMode) -> Self {
match mode {
Expand Down
9 changes: 4 additions & 5 deletions src/crypto_helper/input/argon2.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
use web_sys::HtmlInputElement;
use yew::{classes, function_component, html, html::TargetCast, Callback, Html, Properties};
use yew::html::TargetCast;
use yew::{classes, function_component, html, Callback, Html, Properties};

use crate::{
common::{build_byte_input, BytesFormat, Switch},
crypto_helper::algorithm::{Argon2Action, Argon2HashAction, Argon2Input as Argon2InputData},
};
use crate::common::{build_byte_input, BytesFormat, Switch};
use crate::crypto_helper::algorithm::{Argon2Action, Argon2HashAction, Argon2Input as Argon2InputData};

#[derive(PartialEq, Properties, Clone)]
pub struct Argon2InputProps {
Expand Down

0 comments on commit 74fb406

Please sign in to comment.