mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-19 09:00:54 +00:00
remove a warning
This commit is contained in:
parent
e10c80f370
commit
1424eca689
3 changed files with 3 additions and 3 deletions
|
|
@ -86,6 +86,7 @@ exclude = [
|
||||||
"kernel",
|
"kernel",
|
||||||
"loader",
|
"loader",
|
||||||
"utralib", # Exclude UTRA, since it is machine-generated.
|
"utralib", # Exclude UTRA, since it is machine-generated.
|
||||||
|
"locales", # exclude because it is machine-generated
|
||||||
]
|
]
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
|
|
|
||||||
2
locales/src/.gitignore
vendored
2
locales/src/.gitignore
vendored
|
|
@ -1 +1 @@
|
||||||
lib.rs
|
generated.rs
|
||||||
|
|
|
||||||
|
|
@ -119,7 +119,6 @@ fn generate_code(translations: Translations) -> proc_macro2::TokenStream {
|
||||||
}
|
}
|
||||||
|
|
||||||
quote! {
|
quote! {
|
||||||
#![cfg_attr(target_os = "none", no_std)]
|
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
macro_rules! t {
|
macro_rules! t {
|
||||||
#(#branches)*
|
#(#branches)*
|
||||||
|
|
@ -134,7 +133,7 @@ fn write_code(code: TokenStream) {
|
||||||
let mut dest = project_root();
|
let mut dest = project_root();
|
||||||
dest.push("locales");
|
dest.push("locales");
|
||||||
dest.push("src");
|
dest.push("src");
|
||||||
let mut output = File::create(&std::path::Path::new(&dest).join("lib.rs")).unwrap();
|
let mut output = File::create(&std::path::Path::new(&dest).join("generated.rs")).unwrap();
|
||||||
output
|
output
|
||||||
.write(code.to_string().as_bytes())
|
.write(code.to_string().as_bytes())
|
||||||
.expect("Cannot write generated i18n code");
|
.expect("Cannot write generated i18n code");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue