mirror of
https://github.com/rustic-rs/rustic.git
synced 2025-10-26 11:18:51 +00:00
Silence build warning on OpenBSD
While building rustic-0.5.2 on OpenBSD current:
```
warning: unused import: `anyhow::Context`
--> src/backend/local.rs:10:5
|
10 | use anyhow::Context;
| ^^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> src/main.rs:23:5
|
23 | unused,
| ^^^^^^
= note: `#[warn(unused_imports)]` implied by `#[warn(unused)]`
```
Proposed diff should actually be part of 3d72aee.
This commit is contained in:
parent
890fdb77fb
commit
8fa7200540
@ -6,7 +6,7 @@ use std::path::{Path, PathBuf};
|
||||
use std::process::Command;
|
||||
|
||||
use aho_corasick::AhoCorasick;
|
||||
#[cfg(not(windows))]
|
||||
#[cfg(not(any(windows, target_os = "openbsd")))]
|
||||
use anyhow::Context;
|
||||
use anyhow::{anyhow, bail, Result};
|
||||
use bytes::Bytes;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user