Skip to content

Commit

Permalink
Fix warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedcharles committed Dec 3, 2024
1 parent 9f0e86a commit e69260e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/interpreter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ fn main() -> Result<(), Box<dyn StdError>> {
Ok(ctx.stash(Executor::start(ctx, closure.into(), ())))
})?;

lua.execute(&executor)?;
lua.execute::<()>(&executor)?;

if matches.contains_id("repl") {
run_repl(&mut lua)?;
Expand Down
1 change: 1 addition & 0 deletions src/conversion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ macro_rules! impl_int_from {
value: Value<'gc>,
) -> Result<Self, TypeError> {
if let Some(i) = value.to_integer() {
#[allow(irrefutable_let_patterns)]
if let Ok(i) = <$i>::try_from(i) {
Ok(i)
} else {
Expand Down

0 comments on commit e69260e

Please sign in to comment.