Skip to content

Commit 32249a6

Browse files
authored
sha-crypt: rename defs => consts (#725)
Renames the internal module that defines various constants
1 parent 1405af9 commit 32249a6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

sha-crypt/src/b64.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Base64 encoding support
22
3-
use crate::defs::{
3+
use crate::consts::{
44
BLOCK_SIZE_SHA256, BLOCK_SIZE_SHA512, MAP_SHA256, MAP_SHA512, PW_SIZE_SHA256, PW_SIZE_SHA512,
55
};
66
use base64ct::{Base64ShaCrypt, Encoding};

sha-crypt/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@
4141
extern crate alloc;
4242

4343
mod b64;
44-
mod defs;
44+
mod consts;
4545
mod errors;
4646
mod params;
4747

4848
pub use crate::{
49-
defs::{BLOCK_SIZE_SHA256, BLOCK_SIZE_SHA512},
49+
consts::{BLOCK_SIZE_SHA256, BLOCK_SIZE_SHA512},
5050
errors::CryptError,
5151
params::{ROUNDS_DEFAULT, ROUNDS_MAX, ROUNDS_MIN, Sha256Params, Sha512Params},
5252
};
@@ -59,7 +59,7 @@ pub use crate::errors::{CheckError, DecodeError};
5959

6060
#[cfg(feature = "simple")]
6161
use {
62-
crate::defs::SALT_MAX_LEN,
62+
crate::consts::SALT_MAX_LEN,
6363
alloc::string::ToString,
6464
base64ct::{Base64ShaCrypt, Encoding},
6565
rand_core::{OsRng, RngCore, TryRngCore},

0 commit comments

Comments
 (0)