1
Fork 0
mirror of https://github.com/RGBCube/embd-rs synced 2025-07-27 21:47:45 +00:00

Use absolute imports in all macros

This commit is contained in:
RGBCube 2024-01-04 13:11:36 +03:00
parent b2be0579f8
commit 2b624eb362
No known key found for this signature in database

View file

@ -1,11 +1,11 @@
#[macro_export] #[macro_export]
macro_rules! string { macro_rules! string {
($path:literal) => {{ ($path:literal) => {{
use std::borrow::Cow; use ::std::borrow::Cow;
#[cfg(debug_assertions)] #[cfg(debug_assertions)]
{ {
use std::{ use ::std::{
fs, fs,
path::Path, path::Path,
}; };
@ -32,11 +32,11 @@ macro_rules! string {
#[macro_export] #[macro_export]
macro_rules! bytes { macro_rules! bytes {
($path:literal) => {{ ($path:literal) => {{
use std::borrow::Cow; use ::std::borrow::Cow;
#[cfg(debug_assertions)] #[cfg(debug_assertions)]
{ {
use std::{ use ::std::{
fs, fs,
path::Path, path::Path,
}; };