File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " include-lua-macro"
33description = " Contains the implementation of the include_lua! procedural macro for the crate include-lua."
4- version = " 0.1.1 "
4+ version = " 0.1.2 "
55repository = " https://github.com/AlphaModder/include-lua"
66license = " MIT"
77authors = [" AlphaModder" ]
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ impl IncludeLua {
4848 let add_files = modules. map ( |( module, path) | {
4949 let module = LitStr :: new ( & module, Span :: call_site ( ) ) ;
5050 let real_path = LitStr :: new ( & PathBuf :: from ( self . 0 . value ( ) ) . join ( & path) . to_string_lossy ( ) , Span :: call_site ( ) ) ;
51- let virtual_path = LitStr :: new ( & PathBuf :: from ( self . 1 . value ( ) ) . join ( & path) . to_string_lossy ( ) , Span :: call_site ( ) ) ;
51+ let virtual_path = LitStr :: new ( & path. to_string_lossy ( ) , Span :: call_site ( ) ) ;
5252 quote ! {
5353 files. insert( #module. to_string( ) , ( include_str!( #real_path) . to_string( ) , #virtual_path. to_string( ) ) )
5454 }
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ impl UserData for Searcher {
2626 Ok ( match this. 0 . files . get ( & value) {
2727 Some ( ( source, path) ) => {
2828 Value :: Function ( ctx. load ( source)
29- . set_name ( & format ! ( "{}/ {} (virtual)" , & this. 0 . prefix, path) ) ?
29+ . set_name ( & format ! ( "{}\\ {} (virtual)" , & this. 0 . prefix, path) ) ?
3030 . set_environment ( ctx. registry_value :: < Table > ( & this. 1 ) ?) ?
3131 . into_function ( ) ?
3232 )
You can’t perform that action at this time.
0 commit comments