summaryrefslogtreecommitdiff
path: root/subplotlib
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2023-11-11 10:25:03 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2023-11-11 10:25:03 +0000
commit726bc2d6d8b13b3e914c82f1aaf0c0c53d38aead (patch)
treed03f573d1c3e0e43156b849cc41c706ce8247098 /subplotlib
parent7252cf5c1e0288b1bbb54908999fc7524d12bf1e (diff)
downloadsubplot-726bc2d6d8b13b3e914c82f1aaf0c0c53d38aead.tar.gz
chore: Update from fehler to culpa
Diffstat (limited to 'subplotlib')
-rw-r--r--subplotlib/Cargo.toml2
-rw-r--r--subplotlib/src/prelude.rs12
-rw-r--r--subplotlib/src/types.rs2
3 files changed, 8 insertions, 8 deletions
diff --git a/subplotlib/Cargo.toml b/subplotlib/Cargo.toml
index d790915..bb328c6 100644
--- a/subplotlib/Cargo.toml
+++ b/subplotlib/Cargo.toml
@@ -16,7 +16,6 @@ rust-version = "1.70"
[dependencies]
-fehler = "1"
subplotlib-derive = { version = "0.9.0", path = "../subplotlib-derive" }
lazy_static = "1"
base64 = "0.21.0"
@@ -29,6 +28,7 @@ regex = "1.4"
shell-words = "1.0"
unescape = "0.1"
remove_dir_all = "0.8"
+culpa = "1.0.1"
[build-dependencies]
diff --git a/subplotlib/src/prelude.rs b/subplotlib/src/prelude.rs
index e0ac627..9397fa7 100644
--- a/subplotlib/src/prelude.rs
+++ b/subplotlib/src/prelude.rs
@@ -16,16 +16,16 @@
//! The primary thing you will need to learn, as a step function author, is
//! the [`#[step]`][macro@step] attribute macro, and it interacts with contexts.
-// Re-export fehler's macros so that step functions can use them
-pub use fehler::throw;
+// Re-export culpa's macros so that step functions can use them
+pub use culpa::throw;
/// Indicate what type a function throws
///
-/// This attribute macro comes from the [`fehler`] crate and is used
+/// This attribute macro comes from the [`culpa`] crate and is used
/// to indicate that a function "throws" a particular kind of error.
///
/// ```rust
/// # use std::io;
-/// # use fehler::throws;
+/// # use culpa::throws;
/// #[throws(io::Error)]
/// fn create_thingy() {
/// // something which might cause an io::Error
@@ -51,10 +51,10 @@ pub use fehler::throw;
///
// When https://github.com/rust-lang/rust/issues/83976 is resolved, the below
// can be added to this doc string.
-// You can see more documentation on this in the [fehler crate docs][fehler::throws].
+// You can see more documentation on this in the [culpa crate docs][culpa::throws].
// Alternatively we can get rid of this entirely if and when
// https://github.com/rust-lang/rust/issues/81893 is fixed.
-pub use fehler::throws;
+pub use culpa::throws;
// Re-export the lazy_static macro
#[doc(hidden)]
diff --git a/subplotlib/src/types.rs b/subplotlib/src/types.rs
index 963ce87..d2377ca 100644
--- a/subplotlib/src/types.rs
+++ b/subplotlib/src/types.rs
@@ -11,7 +11,7 @@ pub type StepError = ::std::boxed::Box<dyn ::std::error::Error>;
/// Result type using [`StepError`].
///
/// This is useful for use in situations where you
-/// might use [`#[throws(...)]`][macro@fehler::throws]. Step functions
+/// might use [`#[throws(...)]`][macro@culpa::throws]. Step functions
/// generated using the [`step`][macro@subplotlib_derive::step] macro will
/// automatically set this as their return type by means of `#[throws(StepResult)]`.
pub type StepResult = ::std::result::Result<(), StepError>;