Skip to content

Commit

Permalink
Merge pull request #430 from ratmice/clippy_all_features
Browse files Browse the repository at this point in the history
Fix unsafe_api doc comments, and use statements
  • Loading branch information
ltratt authored Dec 23, 2023
2 parents 0f30331 + a6b4b67 commit 8601fcf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions lrlex/src/lib/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ pub mod unstable_api {
/// the "_unstable_api" feature. This feature controls
/// whether the value has `pub` visibility outside the crate.
#[cfg(feature = "_unstable_api")]
pub use unstable::UnstableApi;
pub use crate::unstable::UnstableApi;

/// This is a a supertrait for traits that are considered to be Unstable.
/// Unstable traits do not provide any semver guarantees.
Expand All @@ -212,15 +212,15 @@ pub mod unstable_api {
///
///
/// Declaring an unstable Api within the crate:
/// ```
/// ```ignore_rust
/// // Within the crate use `crate::unstable::` .
/// pub trait Foo: crate::unstable::UnstableTrait {
/// fn foo(key: crate::unstable::UnstableApi);
/// }
/// ```
///
/// Deriving the trait outside the crate (requires feature `_unsealed_unstable_traits`)
/// ```
/// ```ignore_rust
/// struct Bar;
/// impl unstable_api::UnstableTrait for Bar{}
/// impl Foo for Bar {
Expand All @@ -232,12 +232,12 @@ pub mod unstable_api {
///
///
/// Calling an implementation of the trait outside the crate (requires feature `_unstable_api`:
/// ```
/// ```ignore_rust
/// let x: &dyn Foo = ...;
/// x.foo(unstable_api::UnstableApi);
/// ```
#[cfg(feature = "_unsealed_unstable_traits")]
pub use unstable::UnstableTrait;
pub use crate::unstable::UnstableTrait;

/// An value that acts as a key to inform callers that they are
/// calling an unstable internal api. This value is public by default.
Expand Down
10 changes: 5 additions & 5 deletions lrpar/src/lib/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ pub mod unstable_api {
/// the "_unstable_api" feature. This feature controls
/// whether the value has `pub` visibility outside the crate.
#[cfg(feature = "_unstable_api")]
pub use unstable::UnstableApi;
pub use crate::unstable::UnstableApi;

/// This is a a supertrait for traits that are considered to be Unstable.
/// Unstable traits do not provide any semver guarantees.
Expand All @@ -257,15 +257,15 @@ pub mod unstable_api {
///
///
/// Declaring an unstable Api within the crate:
/// ```
/// ```ignore_rust
/// // Within the crate use `crate::unstable::` .
/// pub trait Foo: crate::unstable::UnstableTrait {
/// fn foo(key: crate::unstable::UnstableApi);
/// }
/// ```
///
/// Deriving the trait outside the crate (requires feature `_unsealed_unstable_traits`)
/// ```
/// ```ignore_rust
/// struct Bar;
/// impl unstable_api::UnstableTrait for Bar{}
/// impl Foo for Bar {
Expand All @@ -277,12 +277,12 @@ pub mod unstable_api {
///
///
/// Calling an implementation of the trait outside the crate (requires feature `_unstable_api`:
/// ```
/// ```ignore_rust
/// let x: &dyn Foo = ...;
/// x.foo(unstable_api::UnstableApi);
/// ```
#[cfg(feature = "_unsealed_unstable_traits")]
pub use unstable::UnstableTrait;
pub use crate::unstable::UnstableTrait;

/// An value that acts as a key to inform callers that they are
/// calling an unstable internal api. This value is public by default.
Expand Down

0 comments on commit 8601fcf

Please sign in to comment.