Skip to content

Commit 13395e9

Browse files
committed
Sync mlua_derive with AsChunk trait
1 parent c61219d commit 13395e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlua_derive/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ pub fn chunk(input: TokenStream) -> TokenStream {
120120
Some(ChunkMode::Text)
121121
}
122122

123-
fn source<'a>(self) -> IoResult<Cow<'a, [u8]>> {
123+
fn source<'a>(&self) -> IoResult<Cow<'a, [u8]>> {
124124
Ok(Cow::Borrowed((#source).as_bytes()))
125125
}
126126
}

0 commit comments

Comments
 (0)