Skip to content

Commit 357382a

Browse files
committed
fix "unused" import warning on non-linux targets
1 parent 918ee5d commit 357382a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/docbuilder/rustwide_builder.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ use crate::utils::{copy_doc_dir, parse_rustc_version, CargoMetadata, GithubUpdat
1111
use crate::{db::blacklist::is_blacklisted, utils::MetadataPackage};
1212
use crate::{Config, Context, Index, Metrics, Storage};
1313
use docsrs_metadata::{Metadata, DEFAULT_TARGETS, HOST_TARGET};
14-
use failure::bail;
1514
use failure::ResultExt;
1615
use log::{debug, info, warn, LevelFilter};
1716
use postgres::Client;
@@ -320,7 +319,7 @@ impl RustwideBuilder {
320319
.mem_available
321320
.expect("kernel version too old for determining memory limit");
322321
if limits.memory() as u64 > available {
323-
bail!("not enough memory to build {} {}: needed {} MiB, have {} MiB\nhelp: set DOCSRS_DISABLE_MEMORY_LIMIT=true to force a build",
322+
failure::bail!("not enough memory to build {} {}: needed {} MiB, have {} MiB\nhelp: set DOCSRS_DISABLE_MEMORY_LIMIT=true to force a build",
324323
name, version, limits.memory() / 1024 / 1024, available / 1024 / 1024
325324
);
326325
} else {

0 commit comments

Comments
 (0)