From bd8bc0094d22aa48920b74c1f2f457aeb8d8c0f2 Mon Sep 17 00:00:00 2001 From: emma Date: Mon, 24 Feb 2025 23:03:31 -0700 Subject: [PATCH] rpn(1): fixes erroneous OpenBSD-gated import --- src/rpn.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rpn.rs b/src/rpn.rs index b2c1bcc..4fc15c3 100644 --- a/src/rpn.rs +++ b/src/rpn.rs @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 Emma Tebibyte + * Copyright (c) 2024–2025 Emma Tebibyte * SPDX-License-Identifier: AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify it under @@ -52,14 +52,14 @@ use std::{ use CalcType::*; +extern crate strerror; extern crate sysexits; +use strerror::StrError; use sysexits::{ EX_DATAERR, EX_IOERR }; #[cfg(target_os="openbsd")] use sysexits::EX_OSERR; -#[cfg(target_os="openbsd")] extern crate strerror; #[cfg(target_os="openbsd")] extern crate openbsd; -#[cfg(target_os="openbsd")] use strerror::StrError; #[cfg(target_os="openbsd")] use openbsd::{ Promises, pledge, unveil }; #[derive(Clone, PartialEq, PartialOrd, Debug)]