Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Martin Dinov
POD
Commits
1d7207d3
Unverified
Commit
1d7207d3
authored
4 years ago
by
Vasili Novikov
Browse files
Options
Download
Email Patches
Plain Diff
Fix clippy warning
parent
4e8fa8ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugin_auth_crypto.rs
+1
-1
src/plugin_auth_crypto.rs
with
1 addition
and
1 deletion
+1
-1
src/plugin_auth_crypto.rs
+
1
-
1
View file @
1d7207d3
...
...
@@ -91,7 +91,7 @@ impl DatabaseKey {
pub
fn
from
(
mut
key_as_hex_string
:
String
)
->
Result
<
DatabaseKey
>
{
key_as_hex_string
.make_ascii_uppercase
();
for
c
in
key_as_hex_string
.chars
()
{
if
!
((
c
>=
'A'
&&
c
<=
'Z'
)
||
(
c
>=
'0'
&&
c
<=
'9'
))
{
if
!
((
'A'
..=
'Z'
)
.contains
(
&
c
)
||
(
'0'
..=
'9'
)
.contains
(
&
c
))
{
key_as_hex_string
.zeroize
();
return
Err
(
Error
{
code
:
StatusCode
::
BAD_REQUEST
,
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets