id_str: macro: refer to IdStr with full path

... otherwise callers need to explicitly `use gst::IdStr`.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1778>
This commit is contained in:
François Laignel 2025-08-19 13:47:55 +02:00
parent db273f5007
commit ccca1db3fb
2 changed files with 1 additions and 2 deletions

View file

@ -44,7 +44,7 @@ mod serde;
#[macro_export]
macro_rules! idstr {
($s:literal) => {
IdStr::from_static($crate::glib::gstr!($s))
$crate::IdStr::from_static($crate::glib::gstr!($s))
};
}

View file

@ -22,7 +22,6 @@ impl<'de> Deserialize<'de> for IdStr {
#[cfg(test)]
mod tests {
use super::*;
use crate::idstr;
#[test]