Skip to content

Commit

Permalink
Unbreak building of rustic_core-0.1.1 on OpenBSD (#27) (#28)
Browse files Browse the repository at this point in the history
Issue was caused by a couple of configuration checks.

Co-authored-by: aawsome <37850842+aawsome@users.noreply.github.com>
  • Loading branch information
bket and aawsome authored Oct 29, 2023
1 parent 7bfcd43 commit 99c79c1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use std::{
time::SystemTimeError,
};

#[cfg(not(any(windows, target_os = "openbsd")))]
#[cfg(not(windows))]
use nix::errno::Errno;

use aes256ctr_poly1305aes::aead;
Expand Down Expand Up @@ -628,7 +628,7 @@ pub enum LocalErrorKind {
FromWalkdirError(#[from] walkdir::Error),
/// {0:?}#
#[error(transparent)]
#[cfg(not(any(windows, target_os = "openbsd")))]
#[cfg(not(windows))]
FromErrnoError(#[from] Errno),
/// listing xattrs on {1:?}: {0}
#[cfg(not(any(windows, target_os = "openbsd")))]
Expand Down Expand Up @@ -670,10 +670,10 @@ pub enum LocalErrorKind {
/// failed to sync OS Metadata to disk: `{0:?}`
SyncingOfOsMetadataFailed(std::io::Error),
/// setting file permissions failed: `{0:?}`
#[cfg(not(any(windows, target_os = "openbsd")))]
#[cfg(not(windows))]
SettingFilePermissionsFailed(std::io::Error),
/// failed to symlink target {linktarget:?} from {filename:?} with {source:?}
#[cfg(not(any(windows, target_os = "openbsd")))]
#[cfg(not(windows))]
SymlinkingFailed {
linktarget: PathBuf,
filename: PathBuf,
Expand Down

0 comments on commit 99c79c1

Please sign in to comment.