Skip to content

Commit

Permalink
include link to issue for concat!()
Browse files Browse the repository at this point in the history
  • Loading branch information
IceDynamix committed Aug 23, 2024
1 parent 2d35ee9 commit 2bec42c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/export/database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ impl Database {
// i *would* create a fn load_local_config<T: ResourceMap + DeserializeOwned>()
// to avoid duplicating the json file names by using T::get_json_name,
// but concat!() only takes string literals. it doesn't even take `&'static str`!!
// https://github.com/rust-lang/rust/issues/53749
Database {
avatar_config: Self::parse_json(include_str!(concat!(
env!("OUT_DIR"),
Expand Down

0 comments on commit 2bec42c

Please sign in to comment.