Skip to content

Commit

Permalink
revert some dochanges
Browse files Browse the repository at this point in the history
  • Loading branch information
mkatychev committed Jul 25, 2024
1 parent a69cdae commit 5ad320e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
8 changes: 4 additions & 4 deletions api/src/dataset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ pub trait Dataset {
/// The result of this method is an iterator,
/// so it can be used in a `for` loop:
/// ```
/// # fn test() -> Result<(), Box<dyn crate::Error>> {
/// # fn test() -> Result<(), Box<dyn sophia_api::Error>> {
/// # use sophia_api::dataset::Dataset;
/// # use sophia_api::term::SimpleTerm;
/// # let dataset = Vec::<[SimpleTerm;4]>::new();
Expand All @@ -88,7 +88,7 @@ pub trait Dataset {
/// # use sophia_api::dataset::Dataset;
/// # use sophia_api::term::SimpleTerm;
/// # use sophia_api::source::QuadSource;
/// # fn test() -> Result<(), Box<dyn crate::Error>> {
/// # fn test() -> Result<(), Box<dyn sophia_api::Error>> {
/// # let dataset = Vec::<[SimpleTerm;4]>::new();
/// #
/// dataset.quads().for_each_quad(|q| {
Expand Down Expand Up @@ -117,7 +117,7 @@ pub trait Dataset {
/// # use sophia_api::prelude::*;
/// # use sophia_api::ns::{Namespace, rdf};
/// #
/// # fn test<G: Dataset>(dataset: &G) -> Result<(), Box<dyn crate::Error>>
/// # fn test<G: Dataset>(dataset: &G) -> Result<(), Box<dyn sophia_api::Error>>
/// # where
/// # G: Dataset,
/// # {
Expand All @@ -141,7 +141,7 @@ pub trait Dataset {
/// # use sophia_api::quad::Quad;
/// # use sophia_api::ns::rdfs;
/// #
/// # fn test<G>(dataset: &G) -> Result<(), Box<dyn crate::Error>>
/// # fn test<G>(dataset: &G) -> Result<(), Box<dyn sophia_api::Error>>
/// # where
/// # G: Dataset,
/// # {
Expand Down
5 changes: 1 addition & 4 deletions iri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,5 @@ pub use std::error::Error;
pub use ThreadSafeError as Error;

///! An error trait meant to enable sending errors safely across threads.
pub trait ThreadSafeError:
core::fmt::Debug + core::fmt::Display + std::error::Error + Send + Sync + 'static
{
}
pub trait ThreadSafeError: std::error::Error + Send + Sync + 'static {}
impl<E> ThreadSafeError for E where E: std::error::Error + Send + Sync + 'static {}

0 comments on commit 5ad320e

Please sign in to comment.