mirror of
https://github.com/RGBCube/embd-rs
synced 2025-07-28 05:57:44 +00:00
Use absolute imports in all macros
This commit is contained in:
parent
b2be0579f8
commit
2b624eb362
1 changed files with 4 additions and 4 deletions
|
@ -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,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue