lune/packages/cli/src/gen/luau_defs.rs

11 lines
238 B
Rust
Raw Normal View History

use anyhow::Result;
#[allow(clippy::unnecessary_wraps)]
pub fn generate_from_type_definitions(contents: &str) -> Result<String> {
Ok(format!(
"--> Lune v{}\n\n{}",
env!("CARGO_PKG_VERSION"),
contents
))
}