From 8fa720054086bedda24ca08027184b793c3aeea3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ketelaars?= Date: Tue, 25 Apr 2023 07:02:00 +0200 Subject: [PATCH] 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. --- src/backend/local.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/local.rs b/src/backend/local.rs index c803e68..c9a741e 100644 --- a/src/backend/local.rs +++ b/src/backend/local.rs @@ -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;