lune/packages/cli/src/gen/luau_defs.rs
2023-02-22 14:25:50 +01:00

10 lines
238 B
Rust

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
))
}