Skip to content

Commit

Permalink
chore: some minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pedromfedricci committed Feb 1, 2025
1 parent f306a09 commit aeff954
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/raw/thread_local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@ impl<T: ?Sized, R: Relax> Mutex<T, R> {
/// });
/// });
/// ```
#[cfg(doctest)]
#[cfg(not(tarpaulin_include))]
const fn __borrows_must_not_escape_closure() {}
}
Expand Down
2 changes: 1 addition & 1 deletion src/relax.rs
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ mod test {
#[test]
fn yields_backoff() {
use super::YieldBackoff;
const MAX: u32 = YieldBackoff::MAX;
const MAX: Uint = YieldBackoff::MAX;
returns::<YieldBackoff, MAX>();
}

Expand Down
2 changes: 1 addition & 1 deletion src/thread_local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#[doc(hidden)]
#[macro_export]
macro_rules! __thread_local_node_inner {
($vis:vis $node:ident, $($mod:ident$(::)?)+) => {
($vis:vis $node:ident, $($mod:ident)::+) => {
$vis const $node: $crate::$($mod::)+LocalMutexNode = {
::std::thread_local! {
static NODE: ::core::cell::RefCell<$crate::$($mod::)+MutexNode> = const {
Expand Down

0 comments on commit aeff954

Please sign in to comment.