mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-22 05:52:23 -05:00
Use concat explicitly from std
This commit is contained in:
parent
dd025391f2
commit
39bdd086a7
1 changed files with 4 additions and 4 deletions
|
@ -60,13 +60,13 @@ pub fn include_files(_: TokenStream) -> TokenStream {
|
||||||
EmbeddedFlatDir {
|
EmbeddedFlatDir {
|
||||||
path: #dir_path,
|
path: #dir_path,
|
||||||
readme: EmbeddedFile {
|
readme: EmbeddedFile {
|
||||||
path: concat!(#dir_path, "/README.md"),
|
path: ::std::concat!(#dir_path, "/README.md"),
|
||||||
content: ::std::include_bytes!(concat!("../", #dir_path, "/README.md")),
|
content: ::std::include_bytes!(::std::concat!("../", #dir_path, "/README.md")),
|
||||||
},
|
},
|
||||||
content: &[
|
content: &[
|
||||||
#(EmbeddedFile {
|
#(EmbeddedFile {
|
||||||
path: #dir_files,
|
path: #dir_files,
|
||||||
content: ::std::include_bytes!(concat!("../", #dir_files)),
|
content: ::std::include_bytes!(::std::concat!("../", #dir_files)),
|
||||||
}),*
|
}),*
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
@ -84,7 +84,7 @@ pub fn include_files(_: TokenStream) -> TokenStream {
|
||||||
files: &[#(
|
files: &[#(
|
||||||
EmbeddedFile {
|
EmbeddedFile {
|
||||||
path: #files,
|
path: #files,
|
||||||
content: ::std::include_bytes!(concat!("../", #files)),
|
content: ::std::include_bytes!(::std::concat!("../", #files)),
|
||||||
}
|
}
|
||||||
),*],
|
),*],
|
||||||
dirs: &[#(#dirs),*],
|
dirs: &[#(#dirs),*],
|
||||||
|
|
Loading…
Reference in a new issue