Skip to content

Commit a4bfeb7

Browse files
committed
clippy
1 parent 0fda512 commit a4bfeb7

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

src/chunk.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ impl Compiler {
301301
}
302302
}
303303

304-
impl<'a> Chunk<'a> {
304+
impl Chunk<'_> {
305305
/// Sets the name of this chunk, which results in more informative error traces.
306306
pub fn set_name(mut self, name: impl Into<String>) -> Self {
307307
self.name = name.into();

src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
// Deny warnings inside doc tests / examples. When this isn't present, rustdoc doesn't show *any*
6666
// warnings at all.
6767
#![cfg_attr(docsrs, feature(doc_cfg))]
68+
#![cfg_attr(not(send), allow(clippy::arc_with_non_send_sync))]
6869

6970
#[macro_use]
7071
mod macros;

src/table.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,8 @@ impl Table {
693693
}
694694

695695
/// Iterates over the sequence part of the table, invoking the given closure on each value.
696-
pub(crate) fn for_each_value<V>(&self, mut f: impl FnMut(V) -> Result<()>) -> Result<()>
696+
#[doc(hidden)]
697+
pub fn for_each_value<V>(&self, mut f: impl FnMut(V) -> Result<()>) -> Result<()>
697698
where
698699
V: FromLua,
699700
{

src/types/sync.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ mod inner {
5353

5454
pub(crate) struct ReentrantMutexGuard<'a, T>(&'a T);
5555

56-
impl<'a, T> Deref for ReentrantMutexGuard<'a, T> {
56+
impl<T> Deref for ReentrantMutexGuard<'_, T> {
5757
type Target = T;
5858

5959
#[inline(always)]

0 commit comments

Comments
 (0)