Commit 0780741
committed
For the associated type `CustomizedPasswordHasher::Params`, removes the
`Display` and `FromStr` bounds which aren't actually used: for
PHC-related purposes which are the only ones implemented directly in
`password-hash`, it instead requires a `TryFrom<phc::ParamsString>` impl
instead.
Requiring these as well seemed like good hygiene so there's some way to
serialize and parse the params as a string, but it becomes a problem
when the params are shared between e.g. PHC and MCF implementations
where each of them has a different params serialization so there's not
one "true" serialization for which it actually makes sense to impl
`Display` and `FromStr`.
1 parent 2187175 commit 0780741
2 files changed
+3
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
| 59 | + | |
63 | 60 | | |
64 | 61 | | |
65 | 62 | | |
| |||
122 | 119 | | |
123 | 120 | | |
124 | 121 | | |
125 | | - | |
| 122 | + | |
126 | 123 | | |
127 | 124 | | |
128 | 125 | | |
| |||
0 commit comments