Skip to content

Commit

Permalink
fixup! fixup! refactor(utilities): Rewrite semver in Rust and wrap as…
Browse files Browse the repository at this point in the history
… Lua type
  • Loading branch information
alerque committed Oct 15, 2024
1 parent 36a5a06 commit 6a6b1c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/semver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ impl LuaUserData for Semver {
impl FromLua for Semver {
fn from_lua(value: LuaValue, _: &Lua) -> LuaResult<Self> {
match value {
LuaValue::UserData(ud) => Ok(ud.borrow::<Semver>()?.deref().clone()),
LuaValue::UserData(ud) => Ok(ud.borrow::<Self>()?.clone()),
LuaValue::Table(_t) => todo!("implement for legacy Lua table based implementation"),
_ => unreachable!(),
}
Expand Down

0 comments on commit 6a6b1c2

Please sign in to comment.