Skip to content

Commit

Permalink
Rust 1.77.0 c-string literals
Browse files Browse the repository at this point in the history
  • Loading branch information
MarijnS95 authored and fornwall committed Apr 3, 2024
1 parent f87407c commit ed4ef6c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/bin/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,15 @@
#![allow(unsafe_code)]

use ash::vk;
use std::ffi::CString;
fn main() {
unsafe {
let entry = ash_molten::load();
let app_name = CString::new("Hello Static Molten").unwrap();
let app_name = c"Hello Static Molten";

let appinfo = vk::ApplicationInfo::default()
.application_name(&app_name)
.application_name(app_name)
.application_version(0)
.engine_name(&app_name)
.engine_name(app_name)
.engine_version(0)
.api_version(vk::make_api_version(0, 1, 0, 0));

Expand Down

0 comments on commit ed4ef6c

Please sign in to comment.