aboutsummaryrefslogtreecommitdiff
path: root/src/passwordmaker/base_conversion/mod.rs
diff options
context:
space:
mode:
authorAndreas Grois <andi@grois.info>2022-10-23 15:22:20 +0200
committerAndreas Grois <andi@grois.info>2022-10-23 15:22:20 +0200
commit53fff5d2f7fc007476e4c4850bd4f974f488b13e (patch)
treeb110bf2dc3c7d8631821c7435d27fea3aeca10ef /src/passwordmaker/base_conversion/mod.rs
parentd5b30baf4dd8ff8dbc4c0bd22b9178c914cbe973 (diff)
Rename "potency" to "power", the English term.
It seems English doesn't use the word potency in this context, but rather uses power.
Diffstat (limited to 'src/passwordmaker/base_conversion/mod.rs')
-rw-r--r--src/passwordmaker/base_conversion/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/passwordmaker/base_conversion/mod.rs b/src/passwordmaker/base_conversion/mod.rs
index bb3fbd6..311f7c5 100644
--- a/src/passwordmaker/base_conversion/mod.rs
+++ b/src/passwordmaker/base_conversion/mod.rs
@@ -3,7 +3,7 @@ use iterative_conversion_impl::PadWithAZero;
pub(super) use iterative_conversion::IterativeBaseConversion;
pub(super) use iterative_conversion_impl::{SixteenBytes, ArbitraryBytes};
-use self::iterative_conversion::ConstantMaxPotencyCache;
+use self::iterative_conversion::ConstantMaxPowerCache;
mod iterative_conversion;
mod iterative_conversion_impl;
@@ -16,7 +16,7 @@ pub(super) trait BaseConversion {
impl<T, const N : usize, const M : usize> BaseConversion for T
where T : ToArbitraryBytes<Output = ArbitraryBytes<N>>,
- for<'a> T::Output: From<&'a usize> + From<&'a u32> + PadWithAZero<Output = ArbitraryBytes<M>> + ConstantMaxPotencyCache<usize>,
+ for<'a> T::Output: From<&'a usize> + From<&'a u32> + PadWithAZero<Output = ArbitraryBytes<M>> + ConstantMaxPowerCache<usize>,
{
type Output = IterativeBaseConversion<ArbitraryBytes<N>, usize>;
fn convert_to_base(self, base : usize) -> Self::Output {