Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bwinf
medal
Commits
c39b2380
Commit
c39b2380
authored
Nov 12, 2020
by
Robert Czechowski
Committed by
Robert Czechowski
Jan 05, 2021
Browse files
Split string by char instead of &str to make clippy happy
parent
5bc670f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/core.rs
View file @
c39b2380
...
...
@@ -287,7 +287,7 @@ pub struct ContestStartConstraints {
}
fn
check_contest_qualification
<
T
:
MedalConnection
>
(
conn
:
&
T
,
session
:
&
SessionUser
,
contest
:
&
Contest
)
->
Option
<
bool
>
{
let
required_contests
=
contest
.requires_contest
.as_ref
()
?
.split
(
","
);
let
required_contests
=
contest
.requires_contest
.as_ref
()
?
.split
(
','
);
for
req_contest
in
required_contests
{
if
conn
.has_participation_by_contest_file
(
session
.id
,
&
contest
.location
,
req_contest
)
{
...
...
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