diff options
author | Alex Orlenko <zxteam@protonmail.com> | 2024-11-09 12:38:05 +0000 |
---|---|---|
committer | Alex Orlenko <zxteam@protonmail.com> | 2024-11-09 12:38:05 +0000 |
commit | a4bfeb7752430b3ae3ccaedec2507257e6a15d76 (patch) | |
tree | 97bee6d7d4412200e9893c8d916bd4751fa32e69 | |
parent | 0fda512938a05bf100f5b4cce249953d2d5d69d9 (diff) | |
download | mlua-a4bfeb7752430b3ae3ccaedec2507257e6a15d76.zip |
clippy
-rw-r--r-- | src/chunk.rs | 2 | ||||
-rw-r--r-- | src/lib.rs | 1 | ||||
-rw-r--r-- | src/table.rs | 3 | ||||
-rw-r--r-- | src/types/sync.rs | 2 |
4 files changed, 5 insertions, 3 deletions
diff --git a/src/chunk.rs b/src/chunk.rs index 0aa3e4d..ff3d9be 100644 --- a/src/chunk.rs +++ b/src/chunk.rs @@ -301,7 +301,7 @@ impl Compiler { } } -impl<'a> Chunk<'a> { +impl Chunk<'_> { /// Sets the name of this chunk, which results in more informative error traces. pub fn set_name(mut self, name: impl Into<String>) -> Self { self.name = name.into(); @@ -65,6 +65,7 @@ // Deny warnings inside doc tests / examples. When this isn't present, rustdoc doesn't show *any* // warnings at all. #![cfg_attr(docsrs, feature(doc_cfg))] +#![cfg_attr(not(send), allow(clippy::arc_with_non_send_sync))] #[macro_use] mod macros; diff --git a/src/table.rs b/src/table.rs index 9430415..d09b662 100644 --- a/src/table.rs +++ b/src/table.rs @@ -693,7 +693,8 @@ impl Table { } /// Iterates over the sequence part of the table, invoking the given closure on each value. - pub(crate) fn for_each_value<V>(&self, mut f: impl FnMut(V) -> Result<()>) -> Result<()> + #[doc(hidden)] + pub fn for_each_value<V>(&self, mut f: impl FnMut(V) -> Result<()>) -> Result<()> where V: FromLua, { diff --git a/src/types/sync.rs b/src/types/sync.rs index 7f9adbd..b6d61fb 100644 --- a/src/types/sync.rs +++ b/src/types/sync.rs @@ -53,7 +53,7 @@ mod inner { pub(crate) struct ReentrantMutexGuard<'a, T>(&'a T); - impl<'a, T> Deref for ReentrantMutexGuard<'a, T> { + impl<T> Deref for ReentrantMutexGuard<'_, T> { type Target = T; #[inline(always)] |