Skip to content

Commit e2bea81

Browse files
authored
Fix ForMgMacro trait (#73)
1 parent 7e88d56 commit e2bea81

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/lib.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,8 @@ pub const fn folder(path: &'static str) -> &'static str {
457457
/// > **Note**: These types will do nothing outside of the `mg!` macro
458458
pub trait ForMgMacro: __private::Sealed + Sync + Send {}
459459

460+
impl<T> ForMgMacro for T where T: __private::Sealed + Sync + Send {}
461+
460462
mod __private {
461463
use super::*;
462464

@@ -469,7 +471,3 @@ mod __private {
469471
impl Sealed for CssAssetBuilder {}
470472
impl Sealed for &'static str {}
471473
}
472-
473-
impl ForMgMacro for ImageAssetBuilder {}
474-
impl ForMgMacro for FontAssetBuilder {}
475-
impl ForMgMacro for &'static str {}

0 commit comments

Comments
 (0)