Skip to content

Commit 7736174

Browse files
authored
Wrong type Option -> Result (#324)
1 parent 4cacd92 commit 7736174

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ before_script:
2626
# NOTE: To increase caching efficiency, keep the same mdbook version
2727
# in blacksmith/Cargo.lock too
2828
- cargo install -v --debug --locked mdbook --vers '=0.3.6'
29+
- cargo build --locked --manifest-path=blacksmith/Cargo.toml
2930
script:
3031
- mdbook build
3132
- cp website_config.json book/

blacksmith/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const CACHE_TTL_SECONDS: u64 = 3600; // 1 hour
1313

1414
fn main() {
1515
// If RUST_LOG is present use that, else default to info level printing.
16-
if let Some(v) = env::var("RUST_LOG") {
16+
if let Ok(v) = env::var("RUST_LOG") {
1717
env_logger::init_from_env(v);
1818
} else {
1919
env_logger::builder()

0 commit comments

Comments
 (0)