Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bwinf
medal
Commits
9bd2ddd2
Commit
9bd2ddd2
authored
Aug 01, 2019
by
Robert Czechowski
Browse files
Rename 'configreader' -> 'contestreader'
parent
404a5fda
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/con
fig
reader_yaml.rs
→
src/con
test
reader_yaml.rs
View file @
9bd2ddd2
File moved
src/main.rs
View file @
9bd2ddd2
...
@@ -30,7 +30,7 @@ mod db_conn_postgres;
...
@@ -30,7 +30,7 @@ mod db_conn_postgres;
mod
db_conn_sqlite
;
mod
db_conn_sqlite
;
mod
db_objects
;
mod
db_objects
;
pub
mod
con
fig
reader_yaml
;
pub
mod
con
test
reader_yaml
;
pub
mod
functions
;
pub
mod
functions
;
pub
mod
oauth_provider
;
pub
mod
oauth_provider
;
mod
webfw_iron
;
mod
webfw_iron
;
...
@@ -150,7 +150,7 @@ fn read_contest(p: &path::PathBuf) -> Option<Contest> {
...
@@ -150,7 +150,7 @@ fn read_contest(p: &path::PathBuf) -> Option<Contest> {
let
mut
contents
=
String
::
new
();
let
mut
contents
=
String
::
new
();
file
.read_to_string
(
&
mut
contents
)
.unwrap
();
file
.read_to_string
(
&
mut
contents
)
.unwrap
();
con
fig
reader_yaml
::
parse_yaml
(
&
contents
,
con
test
reader_yaml
::
parse_yaml
(
&
contents
,
p
.file_name
()
.to_owned
()
?
.to_str
()
?
,
p
.file_name
()
.to_owned
()
?
.to_str
()
?
,
&
format!
(
"{}/"
,
p
.parent
()
.unwrap
()
.to_str
()
?
))
&
format!
(
"{}/"
,
p
.parent
()
.unwrap
()
.to_str
()
?
))
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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