Skip to content

Commit d8307d0

Browse files
committed
Reduce visibility of Wrapped* structs
1 parent bf9fcc5 commit d8307d0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/function.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,10 +509,10 @@ impl Function {
509509
}
510510
}
511511

512-
pub(crate) struct WrappedFunction(pub(crate) Callback);
512+
struct WrappedFunction(pub(crate) Callback);
513513

514514
#[cfg(feature = "async")]
515-
pub(crate) struct WrappedAsyncFunction(pub(crate) AsyncCallback);
515+
struct WrappedAsyncFunction(pub(crate) AsyncCallback);
516516

517517
impl Function {
518518
/// Wraps a Rust function or closure, returning an opaque type that implements [`IntoLua`]

src/string.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ impl<'a> IntoIterator for BorrowedBytes<'a> {
368368
}
369369
}
370370

371-
pub(crate) struct WrappedString<T: AsRef<[u8]>>(T);
371+
struct WrappedString<T: AsRef<[u8]>>(T);
372372

373373
impl String {
374374
/// Wraps bytes, returning an opaque type that implements [`IntoLua`] trait.

src/userdata.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1073,7 +1073,7 @@ impl Serialize for AnyUserData {
10731073
}
10741074
}
10751075

1076-
pub(crate) struct WrappedUserdata<F: FnOnce(&Lua) -> Result<AnyUserData>>(F);
1076+
struct WrappedUserdata<F: FnOnce(&Lua) -> Result<AnyUserData>>(F);
10771077

10781078
impl AnyUserData {
10791079
/// Wraps any Rust type, returning an opaque type that implements [`IntoLua`] trait.

0 commit comments

Comments
 (0)