Skip to content

Commit

Permalink
fix: revert accidentally lowercased version global
Browse files Browse the repository at this point in the history
  • Loading branch information
CompeyDev authored Apr 20, 2024
1 parent d07168d commit ac8d3a9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/lune/globals/version.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
use mlua::prelude::*;

pub fn create(lua: &Lua) -> LuaResult<impl IntoLua<'_>> {
let lune_version = format!("{} {}", env!("CARGO_PKG_NAME"), env!("CARGO_PKG_VERSION"));

let lune_version = format!("Lune {}", env!("CARGO_PKG_VERSION"));
let luau_version_full = lua
.globals()
.get::<_, LuaString>("_VERSION")
.expect("Missing _VERSION global");

let luau_version_str = luau_version_full
.to_str()
.context("Invalid utf8 found in _VERSION global")?;
Expand Down

0 comments on commit ac8d3a9

Please sign in to comment.