Skip to content

Commit f43e8ce

Browse files
Merge pull request #886 from sdroege/gformat-no-import
glib: Fix usage of `gformat!` macro if `GString` is not in scope
2 parents f0b9630 + 5c980b0 commit f43e8ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

glib/src/gstring.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,7 @@ impl GString {
951951
/// creating a [`String`] and then converting it manually to a [`GString`].
952952
#[macro_export]
953953
macro_rules! gformat {
954-
($($arg:tt)*) => { GString::format(std::format_args!($($arg)*)) };
954+
($($arg:tt)*) => { $crate::GString::format(std::format_args!($($arg)*)) };
955955
}
956956

957957
// rustdoc-stripper-ignore-next

0 commit comments

Comments
 (0)