router: repalce c_str! with c"literals"

we can now drop the proxmox-lang dependency here

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2024-06-20 10:34:40 +02:00
parent 38992a588a
commit 0233c8c63b
2 changed files with 2 additions and 4 deletions

View File

@ -26,7 +26,6 @@ tokio = { workspace = true, features = [], optional = true }
rustyline = { version = "9", optional = true }
libc = { workspace = true, optional = true }
proxmox-lang.workspace = true
proxmox-http-error.workspace = true
proxmox-schema.workspace = true
proxmox-async.workspace = true

View File

@ -4,7 +4,6 @@ use anyhow::{bail, format_err, Error};
use serde_json::Value;
use unicode_width::UnicodeWidthStr;
use proxmox_lang::c_str;
use proxmox_schema::{ObjectSchemaType, OneOfSchema, Schema, SchemaPropertyEntry};
/// allows to configure the default output fromat using environment vars
@ -254,7 +253,7 @@ impl TableFormatOptions {
}
}
let empty_cstr = c_str!("");
let empty_cstr = c"";
use std::ffi::CStr;
let encoding = unsafe {
@ -262,7 +261,7 @@ impl TableFormatOptions {
CStr::from_ptr(libc::nl_langinfo(libc::CODESET))
};
if encoding != c_str!("UTF-8") {
if encoding != c"UTF-8" {
me.ascii_delimiters = true;
}