Skip to content

Commit 706094a

Browse files
committed
Update to rust master
1 parent e52f38e commit 706094a

File tree

20 files changed

+123
-122
lines changed

20 files changed

+123
-122
lines changed

Cargo.lock

Lines changed: 56 additions & 55 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ impl App {
3535
);
3636

3737
let db_config = r2d2::Config {
38-
pool_size: if config.env == ::Production {10} else {1},
39-
helper_tasks: if config.env == ::Production {3} else {1},
38+
pool_size: if config.env == ::Env::Production {10} else {1},
39+
helper_tasks: if config.env == ::Env::Production {3} else {1},
4040
test_on_check_out: false,
4141
};
4242

@@ -48,7 +48,7 @@ impl App {
4848
config.s3_region.clone(),
4949
config.s3_access_key.clone(),
5050
config.s3_secret_key.clone(),
51-
if config.env == ::Test {"http"} else {"https"}),
51+
if config.env == ::Env::Test {"http"} else {"https"}),
5252
s3_proxy: config.s3_proxy.clone(),
5353
session_key: config.session_key.clone(),
5454
git_repo: Mutex::new(repo),

0 commit comments

Comments
 (0)