Skip to content

Commit

Permalink
fix building docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Leandros committed Oct 31, 2024
1 parent 491e907 commit ff58205
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ferrunix-core/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,15 @@ mod sync {
/// simplifies enabling `multithread` when required.
pub type Ref<T> = std::sync::Arc<T>;

/// A marker trait for all types that can be registered with [`Registry::transient`].
/// A marker trait for all types that can be registered with `Registry::transient`.
///
/// It's automatically implemented for all types that are valid. Generally,
/// those are all types with a `'static` lifetime.
pub trait Registerable: 'static {}

impl<T> Registerable for T where T: 'static {}

/// A marker trait for all types that can be registered with [`Registry::singleton`].
/// A marker trait for all types that can be registered with `Registry::singleton`.
///
/// It's automatically implemented for all types that are valid. Generally,
/// those are all types with a `'static` lifetime, that are also `Send`
Expand Down Expand Up @@ -232,15 +232,15 @@ mod unsync {
/// simplifies enabling `multithread` when required.
pub type Ref<T> = std::rc::Rc<T>;

/// A marker trait for all types that can be registered with [`Registry::transient`].
/// A marker trait for all types that can be registered with `Registry::transient`.
///
/// It's automatically implemented for all types that are valid. Generally,
/// those are all types with a `'static` lifetime.
pub trait Registerable: 'static {}

impl<T> Registerable for T where T: 'static {}

/// A marker trait for all types that can be registered with [`Registry::singleton`].
/// A marker trait for all types that can be registered with `Registry::singleton`.
///
/// It's automatically implemented for all types that are valid. Generally,
/// those are all types with a `'static` lifetime.
Expand Down Expand Up @@ -360,15 +360,15 @@ mod tokio_ext {
/// simplifies enabling `multithread` when required.
pub type Ref<T> = std::sync::Arc<T>;

/// A marker trait for all types that can be registered with [`Registry::transient`].
/// A marker trait for all types that can be registered with `Registry::transient`.
///
/// It's automatically implemented for all types that are valid. Generally,
/// those are all types with a `'static` lifetime, that are also `Send`.
pub trait Registerable: Send + Sync + 'static {}

impl<T> Registerable for T where T: Send + Sync + 'static {}

/// A marker trait for all types that can be registered with [`Registry::singleton`].
/// A marker trait for all types that can be registered with `Registry::singleton`.
///
/// It's automatically implemented for all types that are valid. Generally,
/// those are all types with a `'static` lifetime, that are also `Send`
Expand Down

0 comments on commit ff58205

Please sign in to comment.