Improved readability of gen_password.rs by intoducing the bitflags

This commit is contained in:
2023-05-31 18:15:38 +03:00
parent 5566397e66
commit c40ffafd69
3 changed files with 35 additions and 18 deletions

17
Cargo.lock generated
View File

@@ -185,6 +185,12 @@ version = "1.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
[[package]]
name = "bitflags"
version = "2.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6776fc96284a0bb647b615056fc496d1fe1644a7ab01829818a6d91cae888b84"
[[package]]
name = "bitvec"
version = "1.0.1"
@@ -357,7 +363,7 @@ version = "3.2.25"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4ea181bf566f71cb9a5d17a59e1871af638180a18fb0035c92ae62b705207123"
dependencies = [
"bitflags",
"bitflags 1.3.2",
"clap_derive",
"clap_lex",
"indexmap",
@@ -1308,6 +1314,7 @@ version = "0.1.0"
dependencies = [
"anyhow",
"arrayvec",
"bitflags 2.3.1",
"chacha20poly1305",
"dotenv",
"futures",
@@ -1572,7 +1579,7 @@ version = "0.2.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a"
dependencies = [
"bitflags",
"bitflags 1.3.2",
]
[[package]]
@@ -1754,7 +1761,7 @@ version = "0.37.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "acf8729d8542766f1b2cf77eb034d52f40d375bb8b615d0b147089946e16613d"
dependencies = [
"bitflags",
"bitflags 1.3.2",
"errno",
"io-lifetimes",
"libc",
@@ -2201,7 +2208,7 @@ dependencies = [
"ahash 0.7.6",
"atoi",
"bigdecimal",
"bitflags",
"bitflags 1.3.2",
"byteorder",
"bytes",
"chrono",
@@ -2371,7 +2378,7 @@ version = "0.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "303db260110c238e3af77bb9dff18bf7a5b5196f783059b0852aab75f91d5a16"
dependencies = [
"bitflags",
"bitflags 1.3.2",
"bytes",
"chrono",
"derive_more",