Fix macro hygiene for path!

This commit is contained in:
Robin Krahl
2023-04-20 16:23:15 +02:00
parent fd178ba1d4
commit f906960d56
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
## Unreleased
## Fixed
- Fixed macro hygiene for `path!`.
## [v0.4.0] - 2023-02-07
This release fixes an overflow of the lookahead buffer. Users are advised to
+1 -1
View File
@@ -187,7 +187,7 @@ pub struct Version {
#[macro_export]
macro_rules! path {
($path:literal) => {
Path::from_str_with_nul(::core::concat!($path, "\0"))
$crate::path::Path::from_str_with_nul(::core::concat!($path, "\0"))
};
}