Regenerate with latest gir

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1147>
This commit is contained in:
Sebastian Dröge 2022-11-12 17:36:40 +02:00
parent 61cc4d704c
commit 38dfe1596d
149 changed files with 1495 additions and 1606 deletions

View file

@ -10,13 +10,13 @@ bitflags! {
#[doc(alias = "GstFdMemoryFlags")]
pub struct FdMemoryFlags: u32 {
#[doc(alias = "GST_FD_MEMORY_FLAG_NONE")]
const NONE = ffi::GST_FD_MEMORY_FLAG_NONE as u32;
const NONE = ffi::GST_FD_MEMORY_FLAG_NONE as _;
#[doc(alias = "GST_FD_MEMORY_FLAG_KEEP_MAPPED")]
const KEEP_MAPPED = ffi::GST_FD_MEMORY_FLAG_KEEP_MAPPED as u32;
const KEEP_MAPPED = ffi::GST_FD_MEMORY_FLAG_KEEP_MAPPED as _;
#[doc(alias = "GST_FD_MEMORY_FLAG_MAP_PRIVATE")]
const MAP_PRIVATE = ffi::GST_FD_MEMORY_FLAG_MAP_PRIVATE as u32;
const MAP_PRIVATE = ffi::GST_FD_MEMORY_FLAG_MAP_PRIVATE as _;
#[doc(alias = "GST_FD_MEMORY_FLAG_DONT_CLOSE")]
const DONT_CLOSE = ffi::GST_FD_MEMORY_FLAG_DONT_CLOSE as u32;
const DONT_CLOSE = ffi::GST_FD_MEMORY_FLAG_DONT_CLOSE as _;
}
}

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 952ff416b599)
Generated by gir (https://github.com/gtk-rs/gir @ e79806af2905)
from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 15396abcca88)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ad1d9ed0a03e)

View file

@ -12,7 +12,7 @@ fn main() {} // prevent linking libraries to avoid documentation failure
#[cfg(not(feature = "dox"))]
fn main() {
if let Err(s) = system_deps::Config::new().probe() {
println!("cargo:warning={}", s);
println!("cargo:warning={s}");
process::exit(1);
}
}

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 952ff416b599)
Generated by gir (https://github.com/gtk-rs/gir @ e79806af2905)
from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 15396abcca88)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ad1d9ed0a03e)

View file

@ -44,7 +44,7 @@ pub struct GstDmaBufAllocatorClass {
impl ::std::fmt::Debug for GstDmaBufAllocatorClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstDmaBufAllocatorClass @ {:p}", self))
f.debug_struct(&format!("GstDmaBufAllocatorClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.finish()
}
@ -58,7 +58,7 @@ pub struct GstFdAllocatorClass {
impl ::std::fmt::Debug for GstFdAllocatorClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstFdAllocatorClass @ {:p}", self))
f.debug_struct(&format!("GstFdAllocatorClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.finish()
}
@ -74,7 +74,7 @@ pub struct GstPhysMemoryAllocatorInterface {
impl ::std::fmt::Debug for GstPhysMemoryAllocatorInterface {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstPhysMemoryAllocatorInterface @ {:p}", self))
f.debug_struct(&format!("GstPhysMemoryAllocatorInterface @ {self:p}"))
.field("get_phys_addr", &self.get_phys_addr)
.finish()
}
@ -90,7 +90,7 @@ pub struct GstDmaBufAllocator {
impl ::std::fmt::Debug for GstDmaBufAllocator {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstDmaBufAllocator @ {:p}", self))
f.debug_struct(&format!("GstDmaBufAllocator @ {self:p}"))
.field("parent", &self.parent)
.finish()
}
@ -104,7 +104,7 @@ pub struct GstFdAllocator {
impl ::std::fmt::Debug for GstFdAllocator {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstFdAllocator @ {:p}", self))
f.debug_struct(&format!("GstFdAllocator @ {self:p}"))
.field("parent", &self.parent)
.finish()
}
@ -119,7 +119,7 @@ pub struct GstPhysMemoryAllocator {
impl ::std::fmt::Debug for GstPhysMemoryAllocator {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
write!(f, "GstPhysMemoryAllocator @ {:p}", self)
write!(f, "GstPhysMemoryAllocator @ {self:p}")
}
}

View file

@ -41,7 +41,7 @@ impl Compiler {
cmd.arg(out);
let status = cmd.spawn()?.wait()?;
if !status.success() {
return Err(format!("compilation command {:?} failed, {}", &cmd, status).into());
return Err(format!("compilation command {cmd:?} failed, {status}").into());
}
Ok(())
}
@ -57,7 +57,7 @@ fn get_var(name: &str, default: &str) -> Result<Vec<String>, Box<dyn Error>> {
match env::var(name) {
Ok(value) => Ok(shell_words::split(&value)?),
Err(env::VarError::NotPresent) => Ok(shell_words::split(default)?),
Err(err) => Err(format!("{} {}", name, err).into()),
Err(err) => Err(format!("{name} {err}").into()),
}
}
@ -71,7 +71,7 @@ fn pkg_config_cflags(packages: &[&str]) -> Result<Vec<String>, Box<dyn Error>> {
cmd.args(packages);
let out = cmd.output()?;
if !out.status.success() {
return Err(format!("command {:?} returned {}", &cmd, out.status).into());
return Err(format!("command {cmd:?} returned {}", out.status).into());
}
let stdout = str::from_utf8(&out.stdout)?;
Ok(shell_words::split(stdout.trim())?)
@ -127,15 +127,14 @@ fn cross_validate_constants_with_c() {
{
if rust_name != c_name {
results.record_failed();
eprintln!("Name mismatch:\nRust: {:?}\nC: {:?}", rust_name, c_name,);
eprintln!("Name mismatch:\nRust: {rust_name:?}\nC: {c_name:?}");
continue;
}
if rust_value != c_value {
results.record_failed();
eprintln!(
"Constant value mismatch for {}\nRust: {:?}\nC: {:?}",
rust_name, rust_value, &c_value
"Constant value mismatch for {rust_name}\nRust: {rust_value:?}\nC: {c_value:?}",
);
continue;
}
@ -165,16 +164,13 @@ fn cross_validate_layout_with_c() {
{
if rust_name != c_name {
results.record_failed();
eprintln!("Name mismatch:\nRust: {:?}\nC: {:?}", rust_name, c_name,);
eprintln!("Name mismatch:\nRust: {rust_name:?}\nC: {c_name:?}");
continue;
}
if rust_layout != c_layout {
results.record_failed();
eprintln!(
"Layout mismatch for {}\nRust: {:?}\nC: {:?}",
rust_name, rust_layout, &c_layout
);
eprintln!("Layout mismatch for {rust_name}\nRust: {rust_layout:?}\nC: {c_layout:?}",);
continue;
}
@ -195,7 +191,7 @@ fn get_c_output(name: &str) -> Result<String, Box<dyn Error>> {
let mut abi_cmd = Command::new(exe);
let output = abi_cmd.output()?;
if !output.status.success() {
return Err(format!("command {:?} failed, {:?}", &abi_cmd, &output).into());
return Err(format!("command {abi_cmd:?} failed, {output:?}").into());
}
Ok(String::from_utf8(output.stdout)?)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 952ff416b599)
Generated by gir (https://github.com/gtk-rs/gir @ e79806af2905)
from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 15396abcca88)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ad1d9ed0a03e)

View file

@ -12,7 +12,7 @@ fn main() {} // prevent linking libraries to avoid documentation failure
#[cfg(not(feature = "dox"))]
fn main() {
if let Err(s) = system_deps::Config::new().probe() {
println!("cargo:warning={}", s);
println!("cargo:warning={s}");
process::exit(1);
}
}

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 952ff416b599)
Generated by gir (https://github.com/gtk-rs/gir @ e79806af2905)
from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 15396abcca88)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ad1d9ed0a03e)

View file

@ -45,7 +45,7 @@ pub struct GstAppSinkCallbacks {
impl ::std::fmt::Debug for GstAppSinkCallbacks {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAppSinkCallbacks @ {:p}", self))
f.debug_struct(&format!("GstAppSinkCallbacks @ {self:p}"))
.field("eos", &self.eos)
.field("new_preroll", &self.new_preroll)
.field("new_sample", &self.new_sample)
@ -74,7 +74,7 @@ pub struct GstAppSinkClass {
impl ::std::fmt::Debug for GstAppSinkClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAppSinkClass @ {:p}", self))
f.debug_struct(&format!("GstAppSinkClass @ {self:p}"))
.field("basesink_class", &self.basesink_class)
.field("eos", &self.eos)
.field("new_preroll", &self.new_preroll)
@ -107,7 +107,7 @@ pub struct GstAppSrcCallbacks {
impl ::std::fmt::Debug for GstAppSrcCallbacks {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAppSrcCallbacks @ {:p}", self))
f.debug_struct(&format!("GstAppSrcCallbacks @ {self:p}"))
.field("need_data", &self.need_data)
.field("enough_data", &self.enough_data)
.field("seek_data", &self.seek_data)
@ -134,7 +134,7 @@ pub struct GstAppSrcClass {
impl ::std::fmt::Debug for GstAppSrcClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAppSrcClass @ {:p}", self))
f.debug_struct(&format!("GstAppSrcClass @ {self:p}"))
.field("basesrc_class", &self.basesrc_class)
.field("need_data", &self.need_data)
.field("enough_data", &self.enough_data)
@ -166,7 +166,7 @@ pub struct GstAppSink {
impl ::std::fmt::Debug for GstAppSink {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAppSink @ {:p}", self))
f.debug_struct(&format!("GstAppSink @ {self:p}"))
.field("basesink", &self.basesink)
.finish()
}
@ -182,7 +182,7 @@ pub struct GstAppSrc {
impl ::std::fmt::Debug for GstAppSrc {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAppSrc @ {:p}", self))
f.debug_struct(&format!("GstAppSrc @ {self:p}"))
.field("basesrc", &self.basesrc)
.finish()
}

View file

@ -41,7 +41,7 @@ impl Compiler {
cmd.arg(out);
let status = cmd.spawn()?.wait()?;
if !status.success() {
return Err(format!("compilation command {:?} failed, {}", &cmd, status).into());
return Err(format!("compilation command {cmd:?} failed, {status}").into());
}
Ok(())
}
@ -57,7 +57,7 @@ fn get_var(name: &str, default: &str) -> Result<Vec<String>, Box<dyn Error>> {
match env::var(name) {
Ok(value) => Ok(shell_words::split(&value)?),
Err(env::VarError::NotPresent) => Ok(shell_words::split(default)?),
Err(err) => Err(format!("{} {}", name, err).into()),
Err(err) => Err(format!("{name} {err}").into()),
}
}
@ -71,7 +71,7 @@ fn pkg_config_cflags(packages: &[&str]) -> Result<Vec<String>, Box<dyn Error>> {
cmd.args(packages);
let out = cmd.output()?;
if !out.status.success() {
return Err(format!("command {:?} returned {}", &cmd, out.status).into());
return Err(format!("command {cmd:?} returned {}", out.status).into());
}
let stdout = str::from_utf8(&out.stdout)?;
Ok(shell_words::split(stdout.trim())?)
@ -127,15 +127,14 @@ fn cross_validate_constants_with_c() {
{
if rust_name != c_name {
results.record_failed();
eprintln!("Name mismatch:\nRust: {:?}\nC: {:?}", rust_name, c_name,);
eprintln!("Name mismatch:\nRust: {rust_name:?}\nC: {c_name:?}");
continue;
}
if rust_value != c_value {
results.record_failed();
eprintln!(
"Constant value mismatch for {}\nRust: {:?}\nC: {:?}",
rust_name, rust_value, &c_value
"Constant value mismatch for {rust_name}\nRust: {rust_value:?}\nC: {c_value:?}",
);
continue;
}
@ -165,16 +164,13 @@ fn cross_validate_layout_with_c() {
{
if rust_name != c_name {
results.record_failed();
eprintln!("Name mismatch:\nRust: {:?}\nC: {:?}", rust_name, c_name,);
eprintln!("Name mismatch:\nRust: {rust_name:?}\nC: {c_name:?}");
continue;
}
if rust_layout != c_layout {
results.record_failed();
eprintln!(
"Layout mismatch for {}\nRust: {:?}\nC: {:?}",
rust_name, rust_layout, &c_layout
);
eprintln!("Layout mismatch for {rust_name}\nRust: {rust_layout:?}\nC: {c_layout:?}",);
continue;
}
@ -195,7 +191,7 @@ fn get_c_output(name: &str) -> Result<String, Box<dyn Error>> {
let mut abi_cmd = Command::new(exe);
let output = abi_cmd.output()?;
if !output.status.success() {
return Err(format!("command {:?} failed, {:?}", &abi_cmd, &output).into());
return Err(format!("command {abi_cmd:?} failed, {output:?}").into());
}
Ok(String::from_utf8(output.stdout)?)

View file

@ -14,7 +14,7 @@ bitflags! {
#[doc(alias = "GstAudioFlags")]
pub struct AudioFlags: u32 {
#[doc(alias = "GST_AUDIO_FLAG_UNPOSITIONED")]
const UNPOSITIONED = ffi::GST_AUDIO_FLAG_UNPOSITIONED as u32;
const UNPOSITIONED = ffi::GST_AUDIO_FLAG_UNPOSITIONED as _;
}
}
@ -72,15 +72,15 @@ bitflags! {
#[doc(alias = "GstAudioFormatFlags")]
pub struct AudioFormatFlags: u32 {
#[doc(alias = "GST_AUDIO_FORMAT_FLAG_INTEGER")]
const INTEGER = ffi::GST_AUDIO_FORMAT_FLAG_INTEGER as u32;
const INTEGER = ffi::GST_AUDIO_FORMAT_FLAG_INTEGER as _;
#[doc(alias = "GST_AUDIO_FORMAT_FLAG_FLOAT")]
const FLOAT = ffi::GST_AUDIO_FORMAT_FLAG_FLOAT as u32;
const FLOAT = ffi::GST_AUDIO_FORMAT_FLAG_FLOAT as _;
#[doc(alias = "GST_AUDIO_FORMAT_FLAG_SIGNED")]
const SIGNED = ffi::GST_AUDIO_FORMAT_FLAG_SIGNED as u32;
const SIGNED = ffi::GST_AUDIO_FORMAT_FLAG_SIGNED as _;
#[doc(alias = "GST_AUDIO_FORMAT_FLAG_COMPLEX")]
const COMPLEX = ffi::GST_AUDIO_FORMAT_FLAG_COMPLEX as u32;
const COMPLEX = ffi::GST_AUDIO_FORMAT_FLAG_COMPLEX as _;
#[doc(alias = "GST_AUDIO_FORMAT_FLAG_UNPACK")]
const UNPACK = ffi::GST_AUDIO_FORMAT_FLAG_UNPACK as u32;
const UNPACK = ffi::GST_AUDIO_FORMAT_FLAG_UNPACK as _;
}
}
@ -138,7 +138,7 @@ bitflags! {
#[doc(alias = "GstAudioPackFlags")]
pub struct AudioPackFlags: u32 {
#[doc(alias = "GST_AUDIO_PACK_FLAG_TRUNCATE_RANGE")]
const TRUNCATE_RANGE = ffi::GST_AUDIO_PACK_FLAG_TRUNCATE_RANGE as u32;
const TRUNCATE_RANGE = ffi::GST_AUDIO_PACK_FLAG_TRUNCATE_RANGE as _;
}
}

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 952ff416b599)
Generated by gir (https://github.com/gtk-rs/gir @ e79806af2905)
from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 15396abcca88)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ad1d9ed0a03e)

View file

@ -12,7 +12,7 @@ fn main() {} // prevent linking libraries to avoid documentation failure
#[cfg(not(feature = "dox"))]
fn main() {
if let Err(s) = system_deps::Config::new().probe() {
println!("cargo:warning={}", s);
println!("cargo:warning={s}");
process::exit(1);
}
}

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 952ff416b599)
Generated by gir (https://github.com/gtk-rs/gir @ e79806af2905)
from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 15396abcca88)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ad1d9ed0a03e)

View file

@ -338,7 +338,7 @@ pub struct GstAudioAggregatorClass {
impl ::std::fmt::Debug for GstAudioAggregatorClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAudioAggregatorClass @ {:p}", self))
f.debug_struct(&format!("GstAudioAggregatorClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.field("create_output_buffer", &self.create_output_buffer)
.field("aggregate_one_buffer", &self.aggregate_one_buffer)
@ -355,7 +355,7 @@ pub struct GstAudioAggregatorConvertPadClass {
impl ::std::fmt::Debug for GstAudioAggregatorConvertPadClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAudioAggregatorConvertPadClass @ {:p}", self))
f.debug_struct(&format!("GstAudioAggregatorConvertPadClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.finish()
}
@ -387,7 +387,7 @@ pub struct GstAudioAggregatorPadClass {
impl ::std::fmt::Debug for GstAudioAggregatorPadClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAudioAggregatorPadClass @ {:p}", self))
f.debug_struct(&format!("GstAudioAggregatorPadClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.field("convert_buffer", &self.convert_buffer)
.field("update_conversion_info", &self.update_conversion_info)
@ -425,7 +425,7 @@ pub struct GstAudioBaseSinkClass {
impl ::std::fmt::Debug for GstAudioBaseSinkClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAudioBaseSinkClass @ {:p}", self))
f.debug_struct(&format!("GstAudioBaseSinkClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.field("create_ringbuffer", &self.create_ringbuffer)
.field("payload", &self.payload)
@ -452,7 +452,7 @@ pub struct GstAudioBaseSrcClass {
impl ::std::fmt::Debug for GstAudioBaseSrcClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAudioBaseSrcClass @ {:p}", self))
f.debug_struct(&format!("GstAudioBaseSrcClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.field("create_ringbuffer", &self.create_ringbuffer)
.finish()
@ -483,7 +483,7 @@ pub struct GstAudioBuffer {
impl ::std::fmt::Debug for GstAudioBuffer {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAudioBuffer @ {:p}", self))
f.debug_struct(&format!("GstAudioBuffer @ {self:p}"))
.field("info", &self.info)
.field("n_samples", &self.n_samples)
.field("n_planes", &self.n_planes)
@ -505,7 +505,7 @@ pub struct GstAudioCdSrcClass {
impl ::std::fmt::Debug for GstAudioCdSrcClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAudioCdSrcClass @ {:p}", self))
f.debug_struct(&format!("GstAudioCdSrcClass @ {self:p}"))
.field("pushsrc_class", &self.pushsrc_class)
.field("open", &self.open)
.field("close", &self.close)
@ -536,7 +536,7 @@ pub struct GstAudioCdSrcTrack {
impl ::std::fmt::Debug for GstAudioCdSrcTrack {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAudioCdSrcTrack @ {:p}", self))
f.debug_struct(&format!("GstAudioCdSrcTrack @ {self:p}"))
.field("is_audio", &self.is_audio)
.field("num", &self.num)
.field("start", &self.start)
@ -565,7 +565,7 @@ pub struct GstAudioClippingMeta {
impl ::std::fmt::Debug for GstAudioClippingMeta {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAudioClippingMeta @ {:p}", self))
f.debug_struct(&format!("GstAudioClippingMeta @ {self:p}"))
.field("meta", &self.meta)
.field("format", &self.format)
.field("start", &self.start)
@ -583,7 +583,7 @@ pub struct GstAudioClockClass {
impl ::std::fmt::Debug for GstAudioClockClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAudioClockClass @ {:p}", self))
f.debug_struct(&format!("GstAudioClockClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.finish()
}
@ -597,7 +597,7 @@ pub struct GstAudioConverter {
impl ::std::fmt::Debug for GstAudioConverter {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAudioConverter @ {:p}", self))
f.debug_struct(&format!("GstAudioConverter @ {self:p}"))
.finish()
}
}
@ -655,7 +655,7 @@ pub struct GstAudioDecoderClass {
impl ::std::fmt::Debug for GstAudioDecoderClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAudioDecoderClass @ {:p}", self))
f.debug_struct(&format!("GstAudioDecoderClass @ {self:p}"))
.field("element_class", &self.element_class)
.field("start", &self.start)
.field("stop", &self.stop)
@ -700,7 +700,7 @@ pub struct GstAudioDownmixMeta {
impl ::std::fmt::Debug for GstAudioDownmixMeta {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAudioDownmixMeta @ {:p}", self))
f.debug_struct(&format!("GstAudioDownmixMeta @ {self:p}"))
.field("meta", &self.meta)
.field("from_position", &self.from_position)
.field("to_position", &self.to_position)
@ -756,7 +756,7 @@ pub struct GstAudioEncoderClass {
impl ::std::fmt::Debug for GstAudioEncoderClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAudioEncoderClass @ {:p}", self))
f.debug_struct(&format!("GstAudioEncoderClass @ {self:p}"))
.field("element_class", &self.element_class)
.field("start", &self.start)
.field("stop", &self.stop)
@ -797,7 +797,7 @@ pub struct GstAudioFilterClass {
impl ::std::fmt::Debug for GstAudioFilterClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAudioFilterClass @ {:p}", self))
f.debug_struct(&format!("GstAudioFilterClass @ {self:p}"))
.field("basetransformclass", &self.basetransformclass)
.field("setup", &self.setup)
.finish()
@ -823,7 +823,7 @@ pub struct GstAudioFormatInfo {
impl ::std::fmt::Debug for GstAudioFormatInfo {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAudioFormatInfo @ {:p}", self))
f.debug_struct(&format!("GstAudioFormatInfo @ {self:p}"))
.field("format", &self.format)
.field("name", &self.name)
.field("description", &self.description)
@ -854,7 +854,7 @@ pub struct GstAudioInfo {
impl ::std::fmt::Debug for GstAudioInfo {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAudioInfo @ {:p}", self))
f.debug_struct(&format!("GstAudioInfo @ {self:p}"))
.field("finfo", &self.finfo)
.field("flags", &self.flags)
.field("layout", &self.layout)
@ -875,7 +875,7 @@ pub struct GstAudioLevelMeta {
impl ::std::fmt::Debug for GstAudioLevelMeta {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAudioLevelMeta @ {:p}", self))
f.debug_struct(&format!("GstAudioLevelMeta @ {self:p}"))
.field("meta", &self.meta)
.field("level", &self.level)
.field("voice_activity", &self.voice_activity)
@ -896,7 +896,7 @@ pub struct GstAudioMeta {
impl ::std::fmt::Debug for GstAudioMeta {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAudioMeta @ {:p}", self))
f.debug_struct(&format!("GstAudioMeta @ {self:p}"))
.field("meta", &self.meta)
.field("info", &self.info)
.field("samples", &self.samples)
@ -953,7 +953,7 @@ pub struct GstAudioRingBufferClass {
impl ::std::fmt::Debug for GstAudioRingBufferClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAudioRingBufferClass @ {:p}", self))
f.debug_struct(&format!("GstAudioRingBufferClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.field("open_device", &self.open_device)
.field("acquire", &self.acquire)
@ -987,7 +987,7 @@ pub struct GstAudioRingBufferSpec {
impl ::std::fmt::Debug for GstAudioRingBufferSpec {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAudioRingBufferSpec @ {:p}", self))
f.debug_struct(&format!("GstAudioRingBufferSpec @ {self:p}"))
.field("caps", &self.caps)
.field("type_", &self.type_)
.field("info", &self.info)
@ -1020,7 +1020,7 @@ pub struct GstAudioSinkClass {
impl ::std::fmt::Debug for GstAudioSinkClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAudioSinkClass @ {:p}", self))
f.debug_struct(&format!("GstAudioSinkClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.field("open", &self.open)
.field("prepare", &self.prepare)
@ -1045,7 +1045,7 @@ pub struct GstAudioSinkClassExtension {
impl ::std::fmt::Debug for GstAudioSinkClassExtension {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAudioSinkClassExtension @ {:p}", self))
f.debug_struct(&format!("GstAudioSinkClassExtension @ {self:p}"))
.field("clear_all", &self.clear_all)
.finish()
}
@ -1070,7 +1070,7 @@ pub struct GstAudioSrcClass {
impl ::std::fmt::Debug for GstAudioSrcClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAudioSrcClass @ {:p}", self))
f.debug_struct(&format!("GstAudioSrcClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.field("open", &self.open)
.field("prepare", &self.prepare)
@ -1091,7 +1091,7 @@ pub struct GstAudioStreamAlign {
impl ::std::fmt::Debug for GstAudioStreamAlign {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAudioStreamAlign @ {:p}", self))
f.debug_struct(&format!("GstAudioStreamAlign @ {self:p}"))
.finish()
}
}
@ -1104,7 +1104,7 @@ pub struct GstStreamVolumeInterface {
impl ::std::fmt::Debug for GstStreamVolumeInterface {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstStreamVolumeInterface @ {:p}", self))
f.debug_struct(&format!("GstStreamVolumeInterface @ {self:p}"))
.field("iface", &self.iface)
.finish()
}
@ -1122,7 +1122,7 @@ pub struct GstAudioAggregator {
impl ::std::fmt::Debug for GstAudioAggregator {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAudioAggregator @ {:p}", self))
f.debug_struct(&format!("GstAudioAggregator @ {self:p}"))
.field("parent", &self.parent)
.field("current_caps", &self.current_caps)
.finish()
@ -1139,7 +1139,7 @@ pub struct GstAudioAggregatorConvertPad {
impl ::std::fmt::Debug for GstAudioAggregatorConvertPad {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAudioAggregatorConvertPad @ {:p}", self))
f.debug_struct(&format!("GstAudioAggregatorConvertPad @ {self:p}"))
.finish()
}
}
@ -1155,7 +1155,7 @@ pub struct GstAudioAggregatorPad {
impl ::std::fmt::Debug for GstAudioAggregatorPad {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAudioAggregatorPad @ {:p}", self))
f.debug_struct(&format!("GstAudioAggregatorPad @ {self:p}"))
.field("parent", &self.parent)
.field("info", &self.info)
.finish()
@ -1178,7 +1178,7 @@ pub struct GstAudioBaseSink {
impl ::std::fmt::Debug for GstAudioBaseSink {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAudioBaseSink @ {:p}", self))
f.debug_struct(&format!("GstAudioBaseSink @ {self:p}"))
.field("element", &self.element)
.field("ringbuffer", &self.ringbuffer)
.field("buffer_time", &self.buffer_time)
@ -1205,7 +1205,7 @@ pub struct GstAudioBaseSrc {
impl ::std::fmt::Debug for GstAudioBaseSrc {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAudioBaseSrc @ {:p}", self))
f.debug_struct(&format!("GstAudioBaseSrc @ {self:p}"))
.field("element", &self.element)
.field("ringbuffer", &self.ringbuffer)
.field("buffer_time", &self.buffer_time)
@ -1228,7 +1228,7 @@ pub struct GstAudioCdSrc {
impl ::std::fmt::Debug for GstAudioCdSrc {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAudioCdSrc @ {:p}", self))
f.debug_struct(&format!("GstAudioCdSrc @ {self:p}"))
.field("pushsrc", &self.pushsrc)
.field("tags", &self.tags)
.finish()
@ -1249,7 +1249,7 @@ pub struct GstAudioClock {
impl ::std::fmt::Debug for GstAudioClock {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAudioClock @ {:p}", self))
f.debug_struct(&format!("GstAudioClock @ {self:p}"))
.field("clock", &self.clock)
.field("func", &self.func)
.field("user_data", &self.user_data)
@ -1273,7 +1273,7 @@ pub struct GstAudioDecoder {
impl ::std::fmt::Debug for GstAudioDecoder {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAudioDecoder @ {:p}", self))
f.debug_struct(&format!("GstAudioDecoder @ {self:p}"))
.field("element", &self.element)
.field("sinkpad", &self.sinkpad)
.field("srcpad", &self.srcpad)
@ -1299,7 +1299,7 @@ pub struct GstAudioEncoder {
impl ::std::fmt::Debug for GstAudioEncoder {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAudioEncoder @ {:p}", self))
f.debug_struct(&format!("GstAudioEncoder @ {self:p}"))
.field("element", &self.element)
.field("sinkpad", &self.sinkpad)
.field("srcpad", &self.srcpad)
@ -1320,7 +1320,7 @@ pub struct GstAudioFilter {
impl ::std::fmt::Debug for GstAudioFilter {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAudioFilter @ {:p}", self))
f.debug_struct(&format!("GstAudioFilter @ {self:p}"))
.field("basetransform", &self.basetransform)
.field("info", &self.info)
.finish()
@ -1357,7 +1357,7 @@ pub struct GstAudioRingBuffer {
impl ::std::fmt::Debug for GstAudioRingBuffer {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAudioRingBuffer @ {:p}", self))
f.debug_struct(&format!("GstAudioRingBuffer @ {self:p}"))
.field("object", &self.object)
.field("cond", &self.cond)
.field("open", &self.open)
@ -1385,7 +1385,7 @@ pub struct GstAudioSink {
impl ::std::fmt::Debug for GstAudioSink {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAudioSink @ {:p}", self))
f.debug_struct(&format!("GstAudioSink @ {self:p}"))
.field("element", &self.element)
.finish()
}
@ -1401,7 +1401,7 @@ pub struct GstAudioSrc {
impl ::std::fmt::Debug for GstAudioSrc {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAudioSrc @ {:p}", self))
f.debug_struct(&format!("GstAudioSrc @ {self:p}"))
.field("element", &self.element)
.finish()
}
@ -1416,7 +1416,7 @@ pub struct GstStreamVolume {
impl ::std::fmt::Debug for GstStreamVolume {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
write!(f, "GstStreamVolume @ {:p}", self)
write!(f, "GstStreamVolume @ {self:p}")
}
}

View file

@ -41,7 +41,7 @@ impl Compiler {
cmd.arg(out);
let status = cmd.spawn()?.wait()?;
if !status.success() {
return Err(format!("compilation command {:?} failed, {}", &cmd, status).into());
return Err(format!("compilation command {cmd:?} failed, {status}").into());
}
Ok(())
}
@ -57,7 +57,7 @@ fn get_var(name: &str, default: &str) -> Result<Vec<String>, Box<dyn Error>> {
match env::var(name) {
Ok(value) => Ok(shell_words::split(&value)?),
Err(env::VarError::NotPresent) => Ok(shell_words::split(default)?),
Err(err) => Err(format!("{} {}", name, err).into()),
Err(err) => Err(format!("{name} {err}").into()),
}
}
@ -71,7 +71,7 @@ fn pkg_config_cflags(packages: &[&str]) -> Result<Vec<String>, Box<dyn Error>> {
cmd.args(packages);
let out = cmd.output()?;
if !out.status.success() {
return Err(format!("command {:?} returned {}", &cmd, out.status).into());
return Err(format!("command {cmd:?} returned {}", out.status).into());
}
let stdout = str::from_utf8(&out.stdout)?;
Ok(shell_words::split(stdout.trim())?)
@ -127,15 +127,14 @@ fn cross_validate_constants_with_c() {
{
if rust_name != c_name {
results.record_failed();
eprintln!("Name mismatch:\nRust: {:?}\nC: {:?}", rust_name, c_name,);
eprintln!("Name mismatch:\nRust: {rust_name:?}\nC: {c_name:?}");
continue;
}
if rust_value != c_value {
results.record_failed();
eprintln!(
"Constant value mismatch for {}\nRust: {:?}\nC: {:?}",
rust_name, rust_value, &c_value
"Constant value mismatch for {rust_name}\nRust: {rust_value:?}\nC: {c_value:?}",
);
continue;
}
@ -165,16 +164,13 @@ fn cross_validate_layout_with_c() {
{
if rust_name != c_name {
results.record_failed();
eprintln!("Name mismatch:\nRust: {:?}\nC: {:?}", rust_name, c_name,);
eprintln!("Name mismatch:\nRust: {rust_name:?}\nC: {c_name:?}");
continue;
}
if rust_layout != c_layout {
results.record_failed();
eprintln!(
"Layout mismatch for {}\nRust: {:?}\nC: {:?}",
rust_name, rust_layout, &c_layout
);
eprintln!("Layout mismatch for {rust_name}\nRust: {rust_layout:?}\nC: {c_layout:?}",);
continue;
}
@ -195,7 +191,7 @@ fn get_c_output(name: &str) -> Result<String, Box<dyn Error>> {
let mut abi_cmd = Command::new(exe);
let output = abi_cmd.output()?;
if !output.status.success() {
return Err(format!("command {:?} failed, {:?}", &abi_cmd, &output).into());
return Err(format!("command {abi_cmd:?} failed, {output:?}").into());
}
Ok(String::from_utf8(output.stdout)?)

View file

@ -10,15 +10,15 @@ bitflags! {
#[doc(alias = "GstBaseParseFrameFlags")]
pub struct BaseParseFrameFlags: u32 {
#[doc(alias = "GST_BASE_PARSE_FRAME_FLAG_NEW_FRAME")]
const NEW_FRAME = ffi::GST_BASE_PARSE_FRAME_FLAG_NEW_FRAME as u32;
const NEW_FRAME = ffi::GST_BASE_PARSE_FRAME_FLAG_NEW_FRAME as _;
#[doc(alias = "GST_BASE_PARSE_FRAME_FLAG_NO_FRAME")]
const NO_FRAME = ffi::GST_BASE_PARSE_FRAME_FLAG_NO_FRAME as u32;
const NO_FRAME = ffi::GST_BASE_PARSE_FRAME_FLAG_NO_FRAME as _;
#[doc(alias = "GST_BASE_PARSE_FRAME_FLAG_CLIP")]
const CLIP = ffi::GST_BASE_PARSE_FRAME_FLAG_CLIP as u32;
const CLIP = ffi::GST_BASE_PARSE_FRAME_FLAG_CLIP as _;
#[doc(alias = "GST_BASE_PARSE_FRAME_FLAG_DROP")]
const DROP = ffi::GST_BASE_PARSE_FRAME_FLAG_DROP as u32;
const DROP = ffi::GST_BASE_PARSE_FRAME_FLAG_DROP as _;
#[doc(alias = "GST_BASE_PARSE_FRAME_FLAG_QUEUE")]
const QUEUE = ffi::GST_BASE_PARSE_FRAME_FLAG_QUEUE as u32;
const QUEUE = ffi::GST_BASE_PARSE_FRAME_FLAG_QUEUE as _;
}
}

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 952ff416b599)
Generated by gir (https://github.com/gtk-rs/gir @ e79806af2905)
from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 15396abcca88)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ad1d9ed0a03e)

View file

@ -12,7 +12,7 @@ fn main() {} // prevent linking libraries to avoid documentation failure
#[cfg(not(feature = "dox"))]
fn main() {
if let Err(s) = system_deps::Config::new().probe() {
println!("cargo:warning={}", s);
println!("cargo:warning={s}");
process::exit(1);
}
}

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 952ff416b599)
Generated by gir (https://github.com/gtk-rs/gir @ e79806af2905)
from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 15396abcca88)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ad1d9ed0a03e)

View file

@ -64,7 +64,7 @@ pub union GstCollectData_ABI {
impl ::std::fmt::Debug for GstCollectData_ABI {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstCollectData_ABI @ {:p}", self))
f.debug_struct(&format!("GstCollectData_ABI @ {self:p}"))
.field("abi", unsafe { &self.abi })
.finish()
}
@ -232,7 +232,7 @@ pub struct GstAggregatorClass {
impl ::std::fmt::Debug for GstAggregatorClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAggregatorClass @ {:p}", self))
f.debug_struct(&format!("GstAggregatorClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.field("flush", &self.flush)
.field("clip", &self.clip)
@ -280,7 +280,7 @@ pub struct GstAggregatorPadClass {
impl ::std::fmt::Debug for GstAggregatorPadClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAggregatorPadClass @ {:p}", self))
f.debug_struct(&format!("GstAggregatorPadClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.field("flush", &self.flush)
.field("skip_buffer", &self.skip_buffer)
@ -344,7 +344,7 @@ pub struct GstBaseParseClass {
impl ::std::fmt::Debug for GstBaseParseClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstBaseParseClass @ {:p}", self))
f.debug_struct(&format!("GstBaseParseClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.field("start", &self.start)
.field("stop", &self.stop)
@ -378,7 +378,7 @@ pub struct GstBaseParseFrame {
impl ::std::fmt::Debug for GstBaseParseFrame {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstBaseParseFrame @ {:p}", self))
f.debug_struct(&format!("GstBaseParseFrame @ {self:p}"))
.field("buffer", &self.buffer)
.field("out_buffer", &self.out_buffer)
.field("flags", &self.flags)
@ -441,7 +441,7 @@ pub struct GstBaseSinkClass {
impl ::std::fmt::Debug for GstBaseSinkClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstBaseSinkClass @ {:p}", self))
f.debug_struct(&format!("GstBaseSinkClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.field("get_caps", &self.get_caps)
.field("set_caps", &self.set_caps)
@ -534,7 +534,7 @@ pub struct GstBaseSrcClass {
impl ::std::fmt::Debug for GstBaseSrcClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstBaseSrcClass @ {:p}", self))
f.debug_struct(&format!("GstBaseSrcClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.field("get_caps", &self.get_caps)
.field("negotiate", &self.negotiate)
@ -694,7 +694,7 @@ pub struct GstBaseTransformClass {
impl ::std::fmt::Debug for GstBaseTransformClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstBaseTransformClass @ {:p}", self))
f.debug_struct(&format!("GstBaseTransformClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.field("passthrough_on_same_caps", &self.passthrough_on_same_caps)
.field(
@ -747,7 +747,7 @@ pub struct GstBitReader {
impl ::std::fmt::Debug for GstBitReader {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstBitReader @ {:p}", self))
f.debug_struct(&format!("GstBitReader @ {self:p}"))
.field("data", &self.data)
.field("size", &self.size)
.field("byte", &self.byte)
@ -769,7 +769,7 @@ pub struct GstBitWriter {
impl ::std::fmt::Debug for GstBitWriter {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstBitWriter @ {:p}", self))
f.debug_struct(&format!("GstBitWriter @ {self:p}"))
.field("data", &self.data)
.field("bit_size", &self.bit_size)
.finish()
@ -787,7 +787,7 @@ pub struct GstByteReader {
impl ::std::fmt::Debug for GstByteReader {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstByteReader @ {:p}", self))
f.debug_struct(&format!("GstByteReader @ {self:p}"))
.field("data", &self.data)
.field("size", &self.size)
.field("byte", &self.byte)
@ -807,7 +807,7 @@ pub struct GstByteWriter {
impl ::std::fmt::Debug for GstByteWriter {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstByteWriter @ {:p}", self))
f.debug_struct(&format!("GstByteWriter @ {self:p}"))
.field("parent", &self.parent)
.field("alloc_size", &self.alloc_size)
.field("fixed", &self.fixed)
@ -831,7 +831,7 @@ pub struct GstCollectData {
impl ::std::fmt::Debug for GstCollectData {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstCollectData @ {:p}", self))
f.debug_struct(&format!("GstCollectData @ {self:p}"))
.field("collect", &self.collect)
.field("pad", &self.pad)
.field("buffer", &self.buffer)
@ -858,7 +858,7 @@ pub struct GstCollectData_ABI_abi {
impl ::std::fmt::Debug for GstCollectData_ABI_abi {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstCollectData_ABI_abi @ {:p}", self))
f.debug_struct(&format!("GstCollectData_ABI_abi @ {self:p}"))
.field("dts", &self.dts)
.finish()
}
@ -873,7 +873,7 @@ pub struct GstCollectPadsClass {
impl ::std::fmt::Debug for GstCollectPadsClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstCollectPadsClass @ {:p}", self))
f.debug_struct(&format!("GstCollectPadsClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.finish()
}
@ -898,7 +898,7 @@ pub struct GstDataQueueClass {
impl ::std::fmt::Debug for GstDataQueueClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstDataQueueClass @ {:p}", self))
f.debug_struct(&format!("GstDataQueueClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.field("empty", &self.empty)
.field("full", &self.full)
@ -920,7 +920,7 @@ pub struct GstDataQueueItem {
impl ::std::fmt::Debug for GstDataQueueItem {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstDataQueueItem @ {:p}", self))
f.debug_struct(&format!("GstDataQueueItem @ {self:p}"))
.field("object", &self.object)
.field("size", &self.size)
.field("duration", &self.duration)
@ -948,7 +948,7 @@ pub struct GstDataQueueSize {
impl ::std::fmt::Debug for GstDataQueueSize {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstDataQueueSize @ {:p}", self))
f.debug_struct(&format!("GstDataQueueSize @ {self:p}"))
.field("visible", &self.visible)
.field("bytes", &self.bytes)
.field("time", &self.time)
@ -964,7 +964,7 @@ pub struct GstFlowCombiner {
impl ::std::fmt::Debug for GstFlowCombiner {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstFlowCombiner @ {:p}", self))
f.debug_struct(&format!("GstFlowCombiner @ {self:p}"))
.finish()
}
}
@ -984,7 +984,7 @@ pub struct GstPushSrcClass {
impl ::std::fmt::Debug for GstPushSrcClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstPushSrcClass @ {:p}", self))
f.debug_struct(&format!("GstPushSrcClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.field("create", &self.create)
.field("alloc", &self.alloc)
@ -1010,7 +1010,7 @@ pub struct GstAdapter {
impl ::std::fmt::Debug for GstAdapter {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAdapter @ {:p}", self)).finish()
f.debug_struct(&format!("GstAdapter @ {self:p}")).finish()
}
}
@ -1025,7 +1025,7 @@ pub struct GstAggregator {
impl ::std::fmt::Debug for GstAggregator {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAggregator @ {:p}", self))
f.debug_struct(&format!("GstAggregator @ {self:p}"))
.field("parent", &self.parent)
.field("srcpad", &self.srcpad)
.finish()
@ -1043,7 +1043,7 @@ pub struct GstAggregatorPad {
impl ::std::fmt::Debug for GstAggregatorPad {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAggregatorPad @ {:p}", self))
f.debug_struct(&format!("GstAggregatorPad @ {self:p}"))
.field("parent", &self.parent)
.field("segment", &self.segment)
.finish()
@ -1064,7 +1064,7 @@ pub struct GstBaseParse {
impl ::std::fmt::Debug for GstBaseParse {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstBaseParse @ {:p}", self))
f.debug_struct(&format!("GstBaseParse @ {self:p}"))
.field("element", &self.element)
.field("sinkpad", &self.sinkpad)
.field("srcpad", &self.srcpad)
@ -1102,7 +1102,7 @@ pub struct GstBaseSink {
impl ::std::fmt::Debug for GstBaseSink {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstBaseSink @ {:p}", self))
f.debug_struct(&format!("GstBaseSink @ {self:p}"))
.field("element", &self.element)
.field("sinkpad", &self.sinkpad)
.field("pad_mode", &self.pad_mode)
@ -1147,7 +1147,7 @@ pub struct GstBaseSrc {
impl ::std::fmt::Debug for GstBaseSrc {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstBaseSrc @ {:p}", self))
f.debug_struct(&format!("GstBaseSrc @ {self:p}"))
.field("element", &self.element)
.field("srcpad", &self.srcpad)
.field("live_lock", &self.live_lock)
@ -1185,7 +1185,7 @@ pub struct GstBaseTransform {
impl ::std::fmt::Debug for GstBaseTransform {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstBaseTransform @ {:p}", self))
f.debug_struct(&format!("GstBaseTransform @ {self:p}"))
.field("element", &self.element)
.field("sinkpad", &self.sinkpad)
.field("srcpad", &self.srcpad)
@ -1208,7 +1208,7 @@ pub struct GstCollectPads {
impl ::std::fmt::Debug for GstCollectPads {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstCollectPads @ {:p}", self))
f.debug_struct(&format!("GstCollectPads @ {self:p}"))
.field("object", &self.object)
.field("data", &self.data)
.finish()
@ -1225,7 +1225,7 @@ pub struct GstDataQueue {
impl ::std::fmt::Debug for GstDataQueue {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstDataQueue @ {:p}", self))
f.debug_struct(&format!("GstDataQueue @ {self:p}"))
.field("object", &self.object)
.finish()
}
@ -1240,7 +1240,7 @@ pub struct GstPushSrc {
impl ::std::fmt::Debug for GstPushSrc {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstPushSrc @ {:p}", self))
f.debug_struct(&format!("GstPushSrc @ {self:p}"))
.field("parent", &self.parent)
.finish()
}

View file

@ -41,7 +41,7 @@ impl Compiler {
cmd.arg(out);
let status = cmd.spawn()?.wait()?;
if !status.success() {
return Err(format!("compilation command {:?} failed, {}", &cmd, status).into());
return Err(format!("compilation command {cmd:?} failed, {status}").into());
}
Ok(())
}
@ -57,7 +57,7 @@ fn get_var(name: &str, default: &str) -> Result<Vec<String>, Box<dyn Error>> {
match env::var(name) {
Ok(value) => Ok(shell_words::split(&value)?),
Err(env::VarError::NotPresent) => Ok(shell_words::split(default)?),
Err(err) => Err(format!("{} {}", name, err).into()),
Err(err) => Err(format!("{name} {err}").into()),
}
}
@ -71,7 +71,7 @@ fn pkg_config_cflags(packages: &[&str]) -> Result<Vec<String>, Box<dyn Error>> {
cmd.args(packages);
let out = cmd.output()?;
if !out.status.success() {
return Err(format!("command {:?} returned {}", &cmd, out.status).into());
return Err(format!("command {cmd:?} returned {}", out.status).into());
}
let stdout = str::from_utf8(&out.stdout)?;
Ok(shell_words::split(stdout.trim())?)
@ -127,15 +127,14 @@ fn cross_validate_constants_with_c() {
{
if rust_name != c_name {
results.record_failed();
eprintln!("Name mismatch:\nRust: {:?}\nC: {:?}", rust_name, c_name,);
eprintln!("Name mismatch:\nRust: {rust_name:?}\nC: {c_name:?}");
continue;
}
if rust_value != c_value {
results.record_failed();
eprintln!(
"Constant value mismatch for {}\nRust: {:?}\nC: {:?}",
rust_name, rust_value, &c_value
"Constant value mismatch for {rust_name}\nRust: {rust_value:?}\nC: {c_value:?}",
);
continue;
}
@ -165,16 +164,13 @@ fn cross_validate_layout_with_c() {
{
if rust_name != c_name {
results.record_failed();
eprintln!("Name mismatch:\nRust: {:?}\nC: {:?}", rust_name, c_name,);
eprintln!("Name mismatch:\nRust: {rust_name:?}\nC: {c_name:?}");
continue;
}
if rust_layout != c_layout {
results.record_failed();
eprintln!(
"Layout mismatch for {}\nRust: {:?}\nC: {:?}",
rust_name, rust_layout, &c_layout
);
eprintln!("Layout mismatch for {rust_name}\nRust: {rust_layout:?}\nC: {c_layout:?}",);
continue;
}
@ -195,7 +191,7 @@ fn get_c_output(name: &str) -> Result<String, Box<dyn Error>> {
let mut abi_cmd = Command::new(exe);
let output = abi_cmd.output()?;
if !output.status.success() {
return Err(format!("command {:?} failed, {:?}", &abi_cmd, &output).into());
return Err(format!("command {abi_cmd:?} failed, {output:?}").into());
}
Ok(String::from_utf8(output.stdout)?)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 952ff416b599)
Generated by gir (https://github.com/gtk-rs/gir @ e79806af2905)
from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 15396abcca88)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ad1d9ed0a03e)

View file

@ -12,7 +12,7 @@ fn main() {} // prevent linking libraries to avoid documentation failure
#[cfg(not(feature = "dox"))]
fn main() {
if let Err(s) = system_deps::Config::new().probe() {
println!("cargo:warning={}", s);
println!("cargo:warning={s}");
process::exit(1);
}
}

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 952ff416b599)
Generated by gir (https://github.com/gtk-rs/gir @ e79806af2905)
from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 15396abcca88)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ad1d9ed0a03e)

View file

@ -41,7 +41,7 @@ pub struct GstHarness {
impl ::std::fmt::Debug for GstHarness {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstHarness @ {:p}", self))
f.debug_struct(&format!("GstHarness @ {self:p}"))
.field("element", &self.element)
.field("srcpad", &self.srcpad)
.field("sinkpad", &self.sinkpad)
@ -83,7 +83,7 @@ pub struct GstTestClockClass {
impl ::std::fmt::Debug for GstTestClockClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstTestClockClass @ {:p}", self))
f.debug_struct(&format!("GstTestClockClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.finish()
}
@ -107,7 +107,7 @@ pub struct GstTestClock {
impl ::std::fmt::Debug for GstTestClock {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstTestClock @ {:p}", self))
f.debug_struct(&format!("GstTestClock @ {self:p}"))
.field("parent", &self.parent)
.finish()
}

View file

@ -41,7 +41,7 @@ impl Compiler {
cmd.arg(out);
let status = cmd.spawn()?.wait()?;
if !status.success() {
return Err(format!("compilation command {:?} failed, {}", &cmd, status).into());
return Err(format!("compilation command {cmd:?} failed, {status}").into());
}
Ok(())
}
@ -57,7 +57,7 @@ fn get_var(name: &str, default: &str) -> Result<Vec<String>, Box<dyn Error>> {
match env::var(name) {
Ok(value) => Ok(shell_words::split(&value)?),
Err(env::VarError::NotPresent) => Ok(shell_words::split(default)?),
Err(err) => Err(format!("{} {}", name, err).into()),
Err(err) => Err(format!("{name} {err}").into()),
}
}
@ -71,7 +71,7 @@ fn pkg_config_cflags(packages: &[&str]) -> Result<Vec<String>, Box<dyn Error>> {
cmd.args(packages);
let out = cmd.output()?;
if !out.status.success() {
return Err(format!("command {:?} returned {}", &cmd, out.status).into());
return Err(format!("command {cmd:?} returned {}", out.status).into());
}
let stdout = str::from_utf8(&out.stdout)?;
Ok(shell_words::split(stdout.trim())?)
@ -127,15 +127,14 @@ fn cross_validate_constants_with_c() {
{
if rust_name != c_name {
results.record_failed();
eprintln!("Name mismatch:\nRust: {:?}\nC: {:?}", rust_name, c_name,);
eprintln!("Name mismatch:\nRust: {rust_name:?}\nC: {c_name:?}");
continue;
}
if rust_value != c_value {
results.record_failed();
eprintln!(
"Constant value mismatch for {}\nRust: {:?}\nC: {:?}",
rust_name, rust_value, &c_value
"Constant value mismatch for {rust_name}\nRust: {rust_value:?}\nC: {c_value:?}",
);
continue;
}
@ -165,16 +164,13 @@ fn cross_validate_layout_with_c() {
{
if rust_name != c_name {
results.record_failed();
eprintln!("Name mismatch:\nRust: {:?}\nC: {:?}", rust_name, c_name,);
eprintln!("Name mismatch:\nRust: {rust_name:?}\nC: {c_name:?}");
continue;
}
if rust_layout != c_layout {
results.record_failed();
eprintln!(
"Layout mismatch for {}\nRust: {:?}\nC: {:?}",
rust_name, rust_layout, &c_layout
);
eprintln!("Layout mismatch for {rust_name}\nRust: {rust_layout:?}\nC: {c_layout:?}",);
continue;
}
@ -195,7 +191,7 @@ fn get_c_output(name: &str) -> Result<String, Box<dyn Error>> {
let mut abi_cmd = Command::new(exe);
let output = abi_cmd.output()?;
if !output.status.success() {
return Err(format!("command {:?} failed, {:?}", &abi_cmd, &output).into());
return Err(format!("command {abi_cmd:?} failed, {output:?}").into());
}
Ok(String::from_utf8(output.stdout)?)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 952ff416b599)
Generated by gir (https://github.com/gtk-rs/gir @ e79806af2905)
from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 15396abcca88)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ad1d9ed0a03e)

View file

@ -12,7 +12,7 @@ fn main() {} // prevent linking libraries to avoid documentation failure
#[cfg(not(feature = "dox"))]
fn main() {
if let Err(s) = system_deps::Config::new().probe() {
println!("cargo:warning={}", s);
println!("cargo:warning={s}");
process::exit(1);
}
}

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 952ff416b599)
Generated by gir (https://github.com/gtk-rs/gir @ e79806af2905)
from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 15396abcca88)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ad1d9ed0a03e)

View file

@ -46,7 +46,7 @@ pub union GstControlPoint_cache {
impl ::std::fmt::Debug for GstControlPoint_cache {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstControlPoint_cache @ {:p}", self))
f.debug_struct(&format!("GstControlPoint_cache @ {self:p}"))
.field("cubic", unsafe { &self.cubic })
.field("cubic_monotonic", unsafe { &self.cubic_monotonic })
.finish()
@ -62,7 +62,7 @@ pub union GstDirectControlBinding_ABI {
impl ::std::fmt::Debug for GstDirectControlBinding_ABI {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstDirectControlBinding_ABI @ {:p}", self))
f.debug_struct(&format!("GstDirectControlBinding_ABI @ {self:p}"))
.field("_gst_reserved", unsafe { &self._gst_reserved })
.field("abi", unsafe { &self.abi })
.finish()
@ -85,7 +85,7 @@ pub struct GstARGBControlBindingClass {
impl ::std::fmt::Debug for GstARGBControlBindingClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstARGBControlBindingClass @ {:p}", self))
f.debug_struct(&format!("GstARGBControlBindingClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.finish()
}
@ -101,7 +101,7 @@ pub struct GstControlPoint {
impl ::std::fmt::Debug for GstControlPoint {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstControlPoint @ {:p}", self))
f.debug_struct(&format!("GstControlPoint @ {self:p}"))
.field("timestamp", &self.timestamp)
.field("value", &self.value)
.field("cache", &self.cache)
@ -118,7 +118,7 @@ pub struct GstControlPoint_cache_cubic {
impl ::std::fmt::Debug for GstControlPoint_cache_cubic {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstControlPoint_cache_cubic @ {:p}", self))
f.debug_struct(&format!("GstControlPoint_cache_cubic @ {self:p}"))
.field("h", &self.h)
.field("z", &self.z)
.finish()
@ -135,14 +135,11 @@ pub struct GstControlPoint_cache_cubic_monotonic {
impl ::std::fmt::Debug for GstControlPoint_cache_cubic_monotonic {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!(
"GstControlPoint_cache_cubic_monotonic @ {:p}",
self
))
.field("c1s", &self.c1s)
.field("c2s", &self.c2s)
.field("c3s", &self.c3s)
.finish()
f.debug_struct(&format!("GstControlPoint_cache_cubic_monotonic @ {self:p}"))
.field("c1s", &self.c1s)
.field("c2s", &self.c2s)
.field("c3s", &self.c3s)
.finish()
}
}
@ -155,7 +152,7 @@ pub struct GstDirectControlBindingClass {
impl ::std::fmt::Debug for GstDirectControlBindingClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstDirectControlBindingClass @ {:p}", self))
f.debug_struct(&format!("GstDirectControlBindingClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.finish()
}
@ -169,7 +166,7 @@ pub struct GstDirectControlBinding_ABI_abi {
impl ::std::fmt::Debug for GstDirectControlBinding_ABI_abi {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstDirectControlBinding_ABI_abi @ {:p}", self))
f.debug_struct(&format!("GstDirectControlBinding_ABI_abi @ {self:p}"))
.field("want_absolute", &self.want_absolute)
.finish()
}
@ -184,7 +181,7 @@ pub struct GstInterpolationControlSourceClass {
impl ::std::fmt::Debug for GstInterpolationControlSourceClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstInterpolationControlSourceClass @ {:p}", self))
f.debug_struct(&format!("GstInterpolationControlSourceClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.finish()
}
@ -207,7 +204,7 @@ pub struct GstLFOControlSourceClass {
impl ::std::fmt::Debug for GstLFOControlSourceClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstLFOControlSourceClass @ {:p}", self))
f.debug_struct(&format!("GstLFOControlSourceClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.finish()
}
@ -230,7 +227,7 @@ pub struct GstProxyControlBindingClass {
impl ::std::fmt::Debug for GstProxyControlBindingClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstProxyControlBindingClass @ {:p}", self))
f.debug_struct(&format!("GstProxyControlBindingClass @ {self:p}"))
.finish()
}
}
@ -244,7 +241,7 @@ pub struct GstTimedValueControlSourceClass {
impl ::std::fmt::Debug for GstTimedValueControlSourceClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstTimedValueControlSourceClass @ {:p}", self))
f.debug_struct(&format!("GstTimedValueControlSourceClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.finish()
}
@ -267,7 +264,7 @@ pub struct GstTriggerControlSourceClass {
impl ::std::fmt::Debug for GstTriggerControlSourceClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstTriggerControlSourceClass @ {:p}", self))
f.debug_struct(&format!("GstTriggerControlSourceClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.finish()
}
@ -297,7 +294,7 @@ pub struct GstARGBControlBinding {
impl ::std::fmt::Debug for GstARGBControlBinding {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstARGBControlBinding @ {:p}", self))
f.debug_struct(&format!("GstARGBControlBinding @ {self:p}"))
.field("parent", &self.parent)
.finish()
}
@ -318,7 +315,7 @@ pub struct GstDirectControlBinding {
impl ::std::fmt::Debug for GstDirectControlBinding {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstDirectControlBinding @ {:p}", self))
f.debug_struct(&format!("GstDirectControlBinding @ {self:p}"))
.field("parent", &self.parent)
.field("ABI", &self.ABI)
.finish()
@ -335,7 +332,7 @@ pub struct GstInterpolationControlSource {
impl ::std::fmt::Debug for GstInterpolationControlSource {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstInterpolationControlSource @ {:p}", self))
f.debug_struct(&format!("GstInterpolationControlSource @ {self:p}"))
.field("parent", &self.parent)
.finish()
}
@ -352,7 +349,7 @@ pub struct GstLFOControlSource {
impl ::std::fmt::Debug for GstLFOControlSource {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstLFOControlSource @ {:p}", self))
f.debug_struct(&format!("GstLFOControlSource @ {self:p}"))
.field("parent", &self.parent)
.finish()
}
@ -369,7 +366,7 @@ pub struct GstProxyControlBinding {
impl ::std::fmt::Debug for GstProxyControlBinding {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstProxyControlBinding @ {:p}", self))
f.debug_struct(&format!("GstProxyControlBinding @ {self:p}"))
.finish()
}
}
@ -388,7 +385,7 @@ pub struct GstTimedValueControlSource {
impl ::std::fmt::Debug for GstTimedValueControlSource {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstTimedValueControlSource @ {:p}", self))
f.debug_struct(&format!("GstTimedValueControlSource @ {self:p}"))
.field("parent", &self.parent)
.field("lock", &self.lock)
.field("values", &self.values)
@ -408,7 +405,7 @@ pub struct GstTriggerControlSource {
impl ::std::fmt::Debug for GstTriggerControlSource {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstTriggerControlSource @ {:p}", self))
f.debug_struct(&format!("GstTriggerControlSource @ {self:p}"))
.field("parent", &self.parent)
.finish()
}

View file

@ -41,7 +41,7 @@ impl Compiler {
cmd.arg(out);
let status = cmd.spawn()?.wait()?;
if !status.success() {
return Err(format!("compilation command {:?} failed, {}", &cmd, status).into());
return Err(format!("compilation command {cmd:?} failed, {status}").into());
}
Ok(())
}
@ -57,7 +57,7 @@ fn get_var(name: &str, default: &str) -> Result<Vec<String>, Box<dyn Error>> {
match env::var(name) {
Ok(value) => Ok(shell_words::split(&value)?),
Err(env::VarError::NotPresent) => Ok(shell_words::split(default)?),
Err(err) => Err(format!("{} {}", name, err).into()),
Err(err) => Err(format!("{name} {err}").into()),
}
}
@ -71,7 +71,7 @@ fn pkg_config_cflags(packages: &[&str]) -> Result<Vec<String>, Box<dyn Error>> {
cmd.args(packages);
let out = cmd.output()?;
if !out.status.success() {
return Err(format!("command {:?} returned {}", &cmd, out.status).into());
return Err(format!("command {cmd:?} returned {}", out.status).into());
}
let stdout = str::from_utf8(&out.stdout)?;
Ok(shell_words::split(stdout.trim())?)
@ -127,15 +127,14 @@ fn cross_validate_constants_with_c() {
{
if rust_name != c_name {
results.record_failed();
eprintln!("Name mismatch:\nRust: {:?}\nC: {:?}", rust_name, c_name,);
eprintln!("Name mismatch:\nRust: {rust_name:?}\nC: {c_name:?}");
continue;
}
if rust_value != c_value {
results.record_failed();
eprintln!(
"Constant value mismatch for {}\nRust: {:?}\nC: {:?}",
rust_name, rust_value, &c_value
"Constant value mismatch for {rust_name}\nRust: {rust_value:?}\nC: {c_value:?}",
);
continue;
}
@ -165,16 +164,13 @@ fn cross_validate_layout_with_c() {
{
if rust_name != c_name {
results.record_failed();
eprintln!("Name mismatch:\nRust: {:?}\nC: {:?}", rust_name, c_name,);
eprintln!("Name mismatch:\nRust: {rust_name:?}\nC: {c_name:?}");
continue;
}
if rust_layout != c_layout {
results.record_failed();
eprintln!(
"Layout mismatch for {}\nRust: {:?}\nC: {:?}",
rust_name, rust_layout, &c_layout
);
eprintln!("Layout mismatch for {rust_name}\nRust: {rust_layout:?}\nC: {c_layout:?}",);
continue;
}
@ -195,7 +191,7 @@ fn get_c_output(name: &str) -> Result<String, Box<dyn Error>> {
let mut abi_cmd = Command::new(exe);
let output = abi_cmd.output()?;
if !output.status.success() {
return Err(format!("command {:?} failed, {:?}", &abi_cmd, &output).into());
return Err(format!("command {abi_cmd:?} failed, {output:?}").into());
}
Ok(String::from_utf8(output.stdout)?)

View file

@ -25,7 +25,7 @@ impl CommandLineFormatter {
#[doc(alias = "get_help")]
pub fn help(commands: &[&str]) -> glib::GString {
assert_initialized_main_thread!();
let nargs = commands.len() as i32;
let nargs = commands.len() as _;
unsafe {
from_glib_full(ffi::ges_command_line_formatter_get_help(
nargs,

View file

@ -18,9 +18,9 @@ bitflags! {
#[doc(alias = "GESMarkerFlags")]
pub struct MarkerFlags: u32 {
#[doc(alias = "GES_MARKER_FLAG_NONE")]
const NONE = ffi::GES_MARKER_FLAG_NONE as u32;
const NONE = ffi::GES_MARKER_FLAG_NONE as _;
#[doc(alias = "GES_MARKER_FLAG_SNAPPABLE")]
const SNAPPABLE = ffi::GES_MARKER_FLAG_SNAPPABLE as u32;
const SNAPPABLE = ffi::GES_MARKER_FLAG_SNAPPABLE as _;
}
}
@ -90,11 +90,11 @@ bitflags! {
#[doc(alias = "GESMetaFlag")]
pub struct MetaFlag: u32 {
#[doc(alias = "GES_META_READABLE")]
const READABLE = ffi::GES_META_READABLE as u32;
const READABLE = ffi::GES_META_READABLE as _;
#[doc(alias = "GES_META_WRITABLE")]
const WRITABLE = ffi::GES_META_WRITABLE as u32;
const WRITABLE = ffi::GES_META_WRITABLE as _;
#[doc(alias = "GES_META_READ_WRITE")]
const READWRITE = ffi::GES_META_READ_WRITE as u32;
const READWRITE = ffi::GES_META_READ_WRITE as _;
}
}
@ -152,15 +152,15 @@ bitflags! {
#[doc(alias = "GESPipelineFlags")]
pub struct PipelineFlags: u32 {
#[doc(alias = "GES_PIPELINE_MODE_PREVIEW_AUDIO")]
const AUDIO_PREVIEW = ffi::GES_PIPELINE_MODE_PREVIEW_AUDIO as u32;
const AUDIO_PREVIEW = ffi::GES_PIPELINE_MODE_PREVIEW_AUDIO as _;
#[doc(alias = "GES_PIPELINE_MODE_PREVIEW_VIDEO")]
const VIDEO_PREVIEW = ffi::GES_PIPELINE_MODE_PREVIEW_VIDEO as u32;
const VIDEO_PREVIEW = ffi::GES_PIPELINE_MODE_PREVIEW_VIDEO as _;
#[doc(alias = "GES_PIPELINE_MODE_PREVIEW")]
const FULL_PREVIEW = ffi::GES_PIPELINE_MODE_PREVIEW as u32;
const FULL_PREVIEW = ffi::GES_PIPELINE_MODE_PREVIEW as _;
#[doc(alias = "GES_PIPELINE_MODE_RENDER")]
const RENDER = ffi::GES_PIPELINE_MODE_RENDER as u32;
const RENDER = ffi::GES_PIPELINE_MODE_RENDER as _;
#[doc(alias = "GES_PIPELINE_MODE_SMART_RENDER")]
const SMART_RENDER = ffi::GES_PIPELINE_MODE_SMART_RENDER as u32;
const SMART_RENDER = ffi::GES_PIPELINE_MODE_SMART_RENDER as _;
}
}
@ -218,15 +218,15 @@ bitflags! {
#[doc(alias = "GESTrackType")]
pub struct TrackType: u32 {
#[doc(alias = "GES_TRACK_TYPE_UNKNOWN")]
const UNKNOWN = ffi::GES_TRACK_TYPE_UNKNOWN as u32;
const UNKNOWN = ffi::GES_TRACK_TYPE_UNKNOWN as _;
#[doc(alias = "GES_TRACK_TYPE_AUDIO")]
const AUDIO = ffi::GES_TRACK_TYPE_AUDIO as u32;
const AUDIO = ffi::GES_TRACK_TYPE_AUDIO as _;
#[doc(alias = "GES_TRACK_TYPE_VIDEO")]
const VIDEO = ffi::GES_TRACK_TYPE_VIDEO as u32;
const VIDEO = ffi::GES_TRACK_TYPE_VIDEO as _;
#[doc(alias = "GES_TRACK_TYPE_TEXT")]
const TEXT = ffi::GES_TRACK_TYPE_TEXT as u32;
const TEXT = ffi::GES_TRACK_TYPE_TEXT as _;
#[doc(alias = "GES_TRACK_TYPE_CUSTOM")]
const CUSTOM = ffi::GES_TRACK_TYPE_CUSTOM as u32;
const CUSTOM = ffi::GES_TRACK_TYPE_CUSTOM as _;
}
}

View file

@ -54,6 +54,7 @@ impl Formatter {
#[doc(alias = "ges_formatter_get_default")]
#[doc(alias = "get_default")]
#[allow(clippy::should_implement_trait)]
pub fn default() -> Asset {
assert_initialized_main_thread!();
unsafe { from_glib_none(ffi::ges_formatter_get_default()) }

View file

@ -715,7 +715,7 @@ impl<O: IsA<MetaContainer>> MetaContainerExt for O {
}
unsafe {
let f: Box_<F> = Box_::new(f);
let detailed_signal_name = detail.map(|name| format!("notify-meta::{}\0", name));
let detailed_signal_name = detail.map(|name| format!("notify-meta::{name}\0"));
let signal_name: &[u8] = detailed_signal_name
.as_ref()
.map_or(&b"notify-meta\0"[..], |n| n.as_bytes());

View file

@ -513,7 +513,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
self.as_ref().to_glib_none().0,
n_properties.as_mut_ptr(),
),
n_properties.assume_init() as usize,
n_properties.assume_init() as _,
);
ret
}
@ -862,7 +862,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
}
unsafe {
let f: Box_<F> = Box_::new(f);
let detailed_signal_name = detail.map(|name| format!("deep-notify::{}\0", name));
let detailed_signal_name = detail.map(|name| format!("deep-notify::{name}\0"));
let signal_name: &[u8] = detailed_signal_name
.as_ref()
.map_or(&b"deep-notify\0"[..], |n| n.as_bytes());

View file

@ -392,7 +392,7 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
self.as_ref().to_glib_none().0,
n_properties.as_mut_ptr(),
),
n_properties.assume_init() as usize,
n_properties.assume_init() as _,
);
ret
}

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 952ff416b599)
Generated by gir (https://github.com/gtk-rs/gir @ e79806af2905)
from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 15396abcca88)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ad1d9ed0a03e)

View file

@ -12,7 +12,7 @@ fn main() {} // prevent linking libraries to avoid documentation failure
#[cfg(not(feature = "dox"))]
fn main() {
if let Err(s) = system_deps::Config::new().probe() {
println!("cargo:warning={}", s);
println!("cargo:warning={s}");
process::exit(1);
}
}

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 952ff416b599)
Generated by gir (https://github.com/gtk-rs/gir @ e79806af2905)
from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 15396abcca88)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ad1d9ed0a03e)

View file

@ -226,7 +226,7 @@ pub union GESClipClass_ABI {
impl ::std::fmt::Debug for GESClipClass_ABI {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESClipClass_ABI @ {:p}", self))
f.debug_struct(&format!("GESClipClass_ABI @ {self:p}"))
.field("_ges_reserved", unsafe { &self._ges_reserved })
.field("abi", unsafe { &self.abi })
.finish()
@ -242,7 +242,7 @@ pub union GESTrackElementClass_ABI {
impl ::std::fmt::Debug for GESTrackElementClass_ABI {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESTrackElementClass_ABI @ {:p}", self))
f.debug_struct(&format!("GESTrackElementClass_ABI @ {self:p}"))
.field("_ges_reserved", unsafe { &self._ges_reserved })
.field("abi", unsafe { &self.abi })
.finish()
@ -258,7 +258,7 @@ pub union GESVideoSourceClass_ABI {
impl ::std::fmt::Debug for GESVideoSourceClass_ABI {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESVideoSourceClass_ABI @ {:p}", self))
f.debug_struct(&format!("GESVideoSourceClass_ABI @ {self:p}"))
.field("_ges_reserved", unsafe { &self._ges_reserved })
.field("abi", unsafe { &self.abi })
.finish()
@ -329,7 +329,7 @@ pub struct GESAssetClass {
impl ::std::fmt::Debug for GESAssetClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESAssetClass @ {:p}", self))
f.debug_struct(&format!("GESAssetClass @ {self:p}"))
.field("parent", &self.parent)
.field("start_loading", &self.start_loading)
.field("extract", &self.extract)
@ -359,7 +359,7 @@ pub struct GESAudioSourceClass {
impl ::std::fmt::Debug for GESAudioSourceClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESAudioSourceClass @ {:p}", self))
f.debug_struct(&format!("GESAudioSourceClass @ {self:p}"))
.field("create_source", &self.create_source)
.finish()
}
@ -382,7 +382,7 @@ pub struct GESAudioTestSourceClass {
impl ::std::fmt::Debug for GESAudioTestSourceClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESAudioTestSourceClass @ {:p}", self))
f.debug_struct(&format!("GESAudioTestSourceClass @ {self:p}"))
.finish()
}
}
@ -404,7 +404,7 @@ pub struct GESAudioTrackClass {
impl ::std::fmt::Debug for GESAudioTrackClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESAudioTrackClass @ {:p}", self))
f.debug_struct(&format!("GESAudioTrackClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.field("_ges_reserved", &self._ges_reserved)
.finish()
@ -428,7 +428,7 @@ pub struct GESAudioTransitionClass {
impl ::std::fmt::Debug for GESAudioTransitionClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESAudioTransitionClass @ {:p}", self))
f.debug_struct(&format!("GESAudioTransitionClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.field("_ges_reserved", &self._ges_reserved)
.finish()
@ -452,7 +452,7 @@ pub struct GESAudioUriSourceClass {
impl ::std::fmt::Debug for GESAudioUriSourceClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESAudioUriSourceClass @ {:p}", self))
f.debug_struct(&format!("GESAudioUriSourceClass @ {self:p}"))
.finish()
}
}
@ -474,7 +474,7 @@ pub struct GESBaseEffectClass {
impl ::std::fmt::Debug for GESBaseEffectClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESBaseEffectClass @ {:p}", self))
f.debug_struct(&format!("GESBaseEffectClass @ {self:p}"))
.finish()
}
}
@ -488,7 +488,7 @@ pub struct GESBaseEffectClipClass {
impl ::std::fmt::Debug for GESBaseEffectClipClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESBaseEffectClipClass @ {:p}", self))
f.debug_struct(&format!("GESBaseEffectClipClass @ {self:p}"))
.finish()
}
}
@ -518,7 +518,7 @@ pub struct GESBaseTransitionClipClass {
impl ::std::fmt::Debug for GESBaseTransitionClipClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESBaseTransitionClipClass @ {:p}", self))
f.debug_struct(&format!("GESBaseTransitionClipClass @ {self:p}"))
.finish()
}
}
@ -548,7 +548,7 @@ pub struct GESBaseXmlFormatterClass {
impl ::std::fmt::Debug for GESBaseXmlFormatterClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESBaseXmlFormatterClass @ {:p}", self))
f.debug_struct(&format!("GESBaseXmlFormatterClass @ {self:p}"))
.field("parent", &self.parent)
.field("content_parser", &self.content_parser)
.field("save", &self.save)
@ -576,7 +576,7 @@ pub struct GESClipAssetClass {
impl ::std::fmt::Debug for GESClipAssetClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESClipAssetClass @ {:p}", self))
f.debug_struct(&format!("GESClipAssetClass @ {self:p}"))
.field("parent", &self.parent)
.field("get_natural_framerate", &self.get_natural_framerate)
.field("_ges_reserved", &self._ges_reserved)
@ -603,7 +603,7 @@ pub struct GESClipClass {
impl ::std::fmt::Debug for GESClipClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESClipClass @ {:p}", self))
f.debug_struct(&format!("GESClipClass @ {self:p}"))
.field("create_track_element", &self.create_track_element)
.field("create_track_elements", &self.create_track_elements)
.field("ABI", &self.ABI)
@ -619,7 +619,7 @@ pub struct GESClipClass_ABI_abi {
impl ::std::fmt::Debug for GESClipClass_ABI_abi {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESClipClass_ABI_abi @ {:p}", self))
f.debug_struct(&format!("GESClipClass_ABI_abi @ {self:p}"))
.field("can_add_effects", &self.can_add_effects)
.finish()
}
@ -641,7 +641,7 @@ pub struct GESCommandLineFormatterClass {
impl ::std::fmt::Debug for GESCommandLineFormatterClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESCommandLineFormatterClass @ {:p}", self))
f.debug_struct(&format!("GESCommandLineFormatterClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.finish()
}
@ -683,7 +683,7 @@ pub struct GESContainerClass {
impl ::std::fmt::Debug for GESContainerClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESContainerClass @ {:p}", self))
f.debug_struct(&format!("GESContainerClass @ {self:p}"))
.field("child_added", &self.child_added)
.field("child_removed", &self.child_removed)
.field("add_child", &self.add_child)
@ -712,7 +712,7 @@ pub struct GESEffectAssetClass {
impl ::std::fmt::Debug for GESEffectAssetClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESEffectAssetClass @ {:p}", self))
f.debug_struct(&format!("GESEffectAssetClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.field("_ges_reserved", &self._ges_reserved)
.finish()
@ -737,7 +737,7 @@ pub struct GESEffectClass {
impl ::std::fmt::Debug for GESEffectClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESEffectClass @ {:p}", self))
f.debug_struct(&format!("GESEffectClass @ {self:p}"))
.finish()
}
}
@ -751,7 +751,7 @@ pub struct GESEffectClipClass {
impl ::std::fmt::Debug for GESEffectClipClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESEffectClipClass @ {:p}", self))
f.debug_struct(&format!("GESEffectClipClass @ {self:p}"))
.finish()
}
}
@ -798,7 +798,7 @@ pub struct GESExtractableInterface {
impl ::std::fmt::Debug for GESExtractableInterface {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESExtractableInterface @ {:p}", self))
f.debug_struct(&format!("GESExtractableInterface @ {self:p}"))
.field("parent", &self.parent)
.field("asset_type", &self.asset_type)
.field("check_id", &self.check_id)
@ -832,7 +832,7 @@ pub struct GESFormatterClass {
impl ::std::fmt::Debug for GESFormatterClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESFormatterClass @ {:p}", self))
f.debug_struct(&format!("GESFormatterClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.field("can_load_uri", &self.can_load_uri)
.field("load_from_uri", &self.load_from_uri)
@ -858,7 +858,7 @@ pub struct GESGroupClass {
impl ::std::fmt::Debug for GESGroupClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESGroupClass @ {:p}", self))
f.debug_struct(&format!("GESGroupClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.field("_ges_reserved", &self._ges_reserved)
.finish()
@ -882,7 +882,7 @@ pub struct GESImageSourceClass {
impl ::std::fmt::Debug for GESImageSourceClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESImageSourceClass @ {:p}", self))
f.debug_struct(&format!("GESImageSourceClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.field("_ges_reserved", &self._ges_reserved)
.finish()
@ -909,7 +909,7 @@ pub struct GESLayerClass {
impl ::std::fmt::Debug for GESLayerClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESLayerClass @ {:p}", self))
f.debug_struct(&format!("GESLayerClass @ {self:p}"))
.field("get_objects", &self.get_objects)
.field("object_added", &self.object_added)
.field("object_removed", &self.object_removed)
@ -933,7 +933,7 @@ pub struct GESMarkerClass {
impl ::std::fmt::Debug for GESMarkerClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESMarkerClass @ {:p}", self))
f.debug_struct(&format!("GESMarkerClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.finish()
}
@ -947,7 +947,7 @@ pub struct GESMarkerListClass {
impl ::std::fmt::Debug for GESMarkerListClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESMarkerListClass @ {:p}", self))
f.debug_struct(&format!("GESMarkerListClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.finish()
}
@ -962,7 +962,7 @@ pub struct GESMetaContainerInterface {
impl ::std::fmt::Debug for GESMetaContainerInterface {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESMetaContainerInterface @ {:p}", self))
f.debug_struct(&format!("GESMetaContainerInterface @ {self:p}"))
.field("parent_iface", &self.parent_iface)
.field("_ges_reserved", &self._ges_reserved)
.finish()
@ -978,7 +978,7 @@ pub struct GESMultiFileSourceClass {
impl ::std::fmt::Debug for GESMultiFileSourceClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESMultiFileSourceClass @ {:p}", self))
f.debug_struct(&format!("GESMultiFileSourceClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.field("_ges_reserved", &self._ges_reserved)
.finish()
@ -1002,7 +1002,7 @@ pub struct GESOperationClass {
impl ::std::fmt::Debug for GESOperationClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESOperationClass @ {:p}", self))
f.debug_struct(&format!("GESOperationClass @ {self:p}"))
.finish()
}
}
@ -1016,7 +1016,7 @@ pub struct GESOperationClipClass {
impl ::std::fmt::Debug for GESOperationClipClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESOperationClipClass @ {:p}", self))
f.debug_struct(&format!("GESOperationClipClass @ {self:p}"))
.finish()
}
}
@ -1046,7 +1046,7 @@ pub struct GESOverlayClipClass {
impl ::std::fmt::Debug for GESOverlayClipClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESOverlayClipClass @ {:p}", self))
f.debug_struct(&format!("GESOverlayClipClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.finish()
}
@ -1069,7 +1069,7 @@ pub struct GESPipelineClass {
impl ::std::fmt::Debug for GESPipelineClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESPipelineClass @ {:p}", self))
f.debug_struct(&format!("GESPipelineClass @ {self:p}"))
.finish()
}
}
@ -1091,7 +1091,7 @@ pub struct GESPitiviFormatterClass {
impl ::std::fmt::Debug for GESPitiviFormatterClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESPitiviFormatterClass @ {:p}", self))
f.debug_struct(&format!("GESPitiviFormatterClass @ {self:p}"))
.finish()
}
}
@ -1124,7 +1124,7 @@ pub struct GESProjectClass {
impl ::std::fmt::Debug for GESProjectClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESProjectClass @ {:p}", self))
f.debug_struct(&format!("GESProjectClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.field("asset_added", &self.asset_added)
.field("asset_loading", &self.asset_loading)
@ -1157,7 +1157,7 @@ pub struct GESSourceClass {
impl ::std::fmt::Debug for GESSourceClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESSourceClass @ {:p}", self))
f.debug_struct(&format!("GESSourceClass @ {self:p}"))
.field("select_pad", &self.select_pad)
.field("create_source", &self.create_source)
.finish()
@ -1172,7 +1172,7 @@ pub struct GESSourceClipAssetClass {
impl ::std::fmt::Debug for GESSourceClipAssetClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESSourceClipAssetClass @ {:p}", self))
f.debug_struct(&format!("GESSourceClipAssetClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.finish()
}
@ -1187,7 +1187,7 @@ pub struct GESSourceClipClass {
impl ::std::fmt::Debug for GESSourceClipClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESSourceClipClass @ {:p}", self))
f.debug_struct(&format!("GESSourceClipClass @ {self:p}"))
.finish()
}
}
@ -1217,7 +1217,7 @@ pub struct GESTestClipClass {
impl ::std::fmt::Debug for GESTestClipClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESTestClipClass @ {:p}", self))
f.debug_struct(&format!("GESTestClipClass @ {self:p}"))
.finish()
}
}
@ -1239,7 +1239,7 @@ pub struct GESTextOverlayClass {
impl ::std::fmt::Debug for GESTextOverlayClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESTextOverlayClass @ {:p}", self))
f.debug_struct(&format!("GESTextOverlayClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.finish()
}
@ -1254,7 +1254,7 @@ pub struct GESTextOverlayClipClass {
impl ::std::fmt::Debug for GESTextOverlayClipClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESTextOverlayClipClass @ {:p}", self))
f.debug_struct(&format!("GESTextOverlayClipClass @ {self:p}"))
.finish()
}
}
@ -1291,7 +1291,7 @@ pub struct GESTimelineClass {
impl ::std::fmt::Debug for GESTimelineClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESTimelineClass @ {:p}", self))
f.debug_struct(&format!("GESTimelineClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.field("track_added", &self.track_added)
.field("track_removed", &self.track_removed)
@ -1368,7 +1368,7 @@ pub struct GESTimelineElementClass {
impl ::std::fmt::Debug for GESTimelineElementClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESTimelineElementClass @ {:p}", self))
f.debug_struct(&format!("GESTimelineElementClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.field("set_parent", &self.set_parent)
.field("set_start", &self.set_start)
@ -1420,7 +1420,7 @@ pub struct GESTitleClipClass {
impl ::std::fmt::Debug for GESTitleClipClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESTitleClipClass @ {:p}", self))
f.debug_struct(&format!("GESTitleClipClass @ {self:p}"))
.finish()
}
}
@ -1442,7 +1442,7 @@ pub struct GESTitleSourceClass {
impl ::std::fmt::Debug for GESTitleSourceClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESTitleSourceClass @ {:p}", self))
f.debug_struct(&format!("GESTitleSourceClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.finish()
}
@ -1466,7 +1466,7 @@ pub struct GESTrackClass {
impl ::std::fmt::Debug for GESTrackClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESTrackClass @ {:p}", self))
f.debug_struct(&format!("GESTrackClass @ {self:p}"))
.field("get_mixing_element", &self.get_mixing_element)
.finish()
}
@ -1483,7 +1483,7 @@ pub struct GESTrackElementAssetClass {
impl ::std::fmt::Debug for GESTrackElementAssetClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESTrackElementAssetClass @ {:p}", self))
f.debug_struct(&format!("GESTrackElementAssetClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.field("get_natural_framerate", &self.get_natural_framerate)
.field("_ges_reserved", &self._ges_reserved)
@ -1525,7 +1525,7 @@ pub struct GESTrackElementClass {
impl ::std::fmt::Debug for GESTrackElementClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESTrackElementClass @ {:p}", self))
f.debug_struct(&format!("GESTrackElementClass @ {self:p}"))
.field("nleobject_factorytype", &self.nleobject_factorytype)
.field("create_gnl_object", &self.create_gnl_object)
.field("create_element", &self.create_element)
@ -1547,7 +1547,7 @@ pub struct GESTrackElementClass_ABI_abi {
impl ::std::fmt::Debug for GESTrackElementClass_ABI_abi {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESTrackElementClass_ABI_abi @ {:p}", self))
f.debug_struct(&format!("GESTrackElementClass_ABI_abi @ {self:p}"))
.field(
"default_has_internal_source",
&self.default_has_internal_source,
@ -1582,7 +1582,7 @@ pub struct GESTransitionClass {
impl ::std::fmt::Debug for GESTransitionClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESTransitionClass @ {:p}", self))
f.debug_struct(&format!("GESTransitionClass @ {self:p}"))
.finish()
}
}
@ -1596,7 +1596,7 @@ pub struct GESTransitionClipClass {
impl ::std::fmt::Debug for GESTransitionClipClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESTransitionClipClass @ {:p}", self))
f.debug_struct(&format!("GESTransitionClipClass @ {self:p}"))
.finish()
}
}
@ -1636,7 +1636,7 @@ pub struct GESUriClipAssetClass {
impl ::std::fmt::Debug for GESUriClipAssetClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESUriClipAssetClass @ {:p}", self))
f.debug_struct(&format!("GESUriClipAssetClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.field("discovered", &self.discovered)
.finish()
@ -1660,7 +1660,7 @@ pub struct GESUriClipClass {
impl ::std::fmt::Debug for GESUriClipClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESUriClipClass @ {:p}", self))
f.debug_struct(&format!("GESUriClipClass @ {self:p}"))
.finish()
}
}
@ -1690,7 +1690,7 @@ pub struct GESUriSourceAssetClass {
impl ::std::fmt::Debug for GESUriSourceAssetClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESUriSourceAssetClass @ {:p}", self))
f.debug_struct(&format!("GESUriSourceAssetClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.field("_ges_reserved", &self._ges_reserved)
.finish()
@ -1715,7 +1715,7 @@ pub struct GESVideoSourceClass {
impl ::std::fmt::Debug for GESVideoSourceClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESVideoSourceClass @ {:p}", self))
f.debug_struct(&format!("GESVideoSourceClass @ {self:p}"))
.field("create_source", &self.create_source)
.field("ABI", &self.ABI)
.finish()
@ -1736,7 +1736,7 @@ pub struct GESVideoSourceClass_ABI_abi {
impl ::std::fmt::Debug for GESVideoSourceClass_ABI_abi {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESVideoSourceClass_ABI_abi @ {:p}", self))
f.debug_struct(&format!("GESVideoSourceClass_ABI_abi @ {self:p}"))
.field(
"disable_scale_in_compositor",
&self.disable_scale_in_compositor,
@ -1765,7 +1765,7 @@ pub struct GESVideoTestSourceClass {
impl ::std::fmt::Debug for GESVideoTestSourceClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESVideoTestSourceClass @ {:p}", self))
f.debug_struct(&format!("GESVideoTestSourceClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.field("_ges_reserved", &self._ges_reserved)
.finish()
@ -1789,7 +1789,7 @@ pub struct GESVideoTrackClass {
impl ::std::fmt::Debug for GESVideoTrackClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESVideoTrackClass @ {:p}", self))
f.debug_struct(&format!("GESVideoTrackClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.field("_ges_reserved", &self._ges_reserved)
.finish()
@ -1813,7 +1813,7 @@ pub struct GESVideoTransitionClass {
impl ::std::fmt::Debug for GESVideoTransitionClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESVideoTransitionClass @ {:p}", self))
f.debug_struct(&format!("GESVideoTransitionClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.finish()
}
@ -1836,7 +1836,7 @@ pub struct GESVideoUriSourceClass {
impl ::std::fmt::Debug for GESVideoUriSourceClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESVideoUriSourceClass @ {:p}", self))
f.debug_struct(&format!("GESVideoUriSourceClass @ {self:p}"))
.finish()
}
}
@ -1858,7 +1858,7 @@ pub struct GESXmlFormatterClass {
impl ::std::fmt::Debug for GESXmlFormatterClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESXmlFormatterClass @ {:p}", self))
f.debug_struct(&format!("GESXmlFormatterClass @ {self:p}"))
.field("parent", &self.parent)
.field("_ges_reserved", &self._ges_reserved)
.finish()
@ -1884,7 +1884,7 @@ pub struct GESAsset {
impl ::std::fmt::Debug for GESAsset {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESAsset @ {:p}", self))
f.debug_struct(&format!("GESAsset @ {self:p}"))
.field("parent", &self.parent)
.finish()
}
@ -1900,7 +1900,7 @@ pub struct GESAudioSource {
impl ::std::fmt::Debug for GESAudioSource {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESAudioSource @ {:p}", self))
f.debug_struct(&format!("GESAudioSource @ {self:p}"))
.finish()
}
}
@ -1915,7 +1915,7 @@ pub struct GESAudioTestSource {
impl ::std::fmt::Debug for GESAudioTestSource {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESAudioTestSource @ {:p}", self))
f.debug_struct(&format!("GESAudioTestSource @ {self:p}"))
.field("parent", &self.parent)
.finish()
}
@ -1931,7 +1931,7 @@ pub struct GESAudioTrack {
impl ::std::fmt::Debug for GESAudioTrack {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESAudioTrack @ {:p}", self))
f.debug_struct(&format!("GESAudioTrack @ {self:p}"))
.field("parent_instance", &self.parent_instance)
.finish()
}
@ -1947,7 +1947,7 @@ pub struct GESAudioTransition {
impl ::std::fmt::Debug for GESAudioTransition {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESAudioTransition @ {:p}", self))
f.debug_struct(&format!("GESAudioTransition @ {self:p}"))
.field("parent", &self.parent)
.finish()
}
@ -1964,7 +1964,7 @@ pub struct GESAudioUriSource {
impl ::std::fmt::Debug for GESAudioUriSource {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESAudioUriSource @ {:p}", self))
f.debug_struct(&format!("GESAudioUriSource @ {self:p}"))
.finish()
}
}
@ -1979,7 +1979,7 @@ pub struct GESBaseEffect {
impl ::std::fmt::Debug for GESBaseEffect {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESBaseEffect @ {:p}", self))
f.debug_struct(&format!("GESBaseEffect @ {self:p}"))
.finish()
}
}
@ -1994,7 +1994,7 @@ pub struct GESBaseEffectClip {
impl ::std::fmt::Debug for GESBaseEffectClip {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESBaseEffectClip @ {:p}", self))
f.debug_struct(&format!("GESBaseEffectClip @ {self:p}"))
.finish()
}
}
@ -2009,7 +2009,7 @@ pub struct GESBaseTransitionClip {
impl ::std::fmt::Debug for GESBaseTransitionClip {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESBaseTransitionClip @ {:p}", self))
f.debug_struct(&format!("GESBaseTransitionClip @ {self:p}"))
.finish()
}
}
@ -2025,7 +2025,7 @@ pub struct GESBaseXmlFormatter {
impl ::std::fmt::Debug for GESBaseXmlFormatter {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESBaseXmlFormatter @ {:p}", self))
f.debug_struct(&format!("GESBaseXmlFormatter @ {self:p}"))
.field("parent", &self.parent)
.finish()
}
@ -2041,7 +2041,7 @@ pub struct GESClip {
impl ::std::fmt::Debug for GESClip {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESClip @ {:p}", self))
f.debug_struct(&format!("GESClip @ {self:p}"))
.field("parent", &self.parent)
.finish()
}
@ -2057,7 +2057,7 @@ pub struct GESClipAsset {
impl ::std::fmt::Debug for GESClipAsset {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESClipAsset @ {:p}", self))
f.debug_struct(&format!("GESClipAsset @ {self:p}"))
.field("parent", &self.parent)
.finish()
}
@ -2072,7 +2072,7 @@ pub struct GESCommandLineFormatter {
impl ::std::fmt::Debug for GESCommandLineFormatter {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESCommandLineFormatter @ {:p}", self))
f.debug_struct(&format!("GESCommandLineFormatter @ {self:p}"))
.field("parent_instance", &self.parent_instance)
.field("priv_", &self.priv_)
.finish()
@ -2093,7 +2093,7 @@ pub struct GESContainer {
impl ::std::fmt::Debug for GESContainer {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESContainer @ {:p}", self))
f.debug_struct(&format!("GESContainer @ {self:p}"))
.field("parent", &self.parent)
.field("children", &self.children)
.field("height", &self.height)
@ -2113,7 +2113,7 @@ pub struct GESEffect {
impl ::std::fmt::Debug for GESEffect {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESEffect @ {:p}", self)).finish()
f.debug_struct(&format!("GESEffect @ {self:p}")).finish()
}
}
@ -2127,7 +2127,7 @@ pub struct GESEffectAsset {
impl ::std::fmt::Debug for GESEffectAsset {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESEffectAsset @ {:p}", self))
f.debug_struct(&format!("GESEffectAsset @ {self:p}"))
.field("parent_instance", &self.parent_instance)
.field("priv_", &self.priv_)
.field("_ges_reserved", &self._ges_reserved)
@ -2145,7 +2145,7 @@ pub struct GESEffectClip {
impl ::std::fmt::Debug for GESEffectClip {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESEffectClip @ {:p}", self))
f.debug_struct(&format!("GESEffectClip @ {self:p}"))
.finish()
}
}
@ -2162,7 +2162,7 @@ pub struct GESFormatter {
impl ::std::fmt::Debug for GESFormatter {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESFormatter @ {:p}", self))
f.debug_struct(&format!("GESFormatter @ {self:p}"))
.field("parent", &self.parent)
.finish()
}
@ -2178,7 +2178,7 @@ pub struct GESGroup {
impl ::std::fmt::Debug for GESGroup {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESGroup @ {:p}", self))
f.debug_struct(&format!("GESGroup @ {self:p}"))
.field("parent", &self.parent)
.finish()
}
@ -2195,7 +2195,7 @@ pub struct GESImageSource {
impl ::std::fmt::Debug for GESImageSource {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESImageSource @ {:p}", self))
f.debug_struct(&format!("GESImageSource @ {self:p}"))
.finish()
}
}
@ -2213,7 +2213,7 @@ pub struct GESLayer {
impl ::std::fmt::Debug for GESLayer {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESLayer @ {:p}", self))
f.debug_struct(&format!("GESLayer @ {self:p}"))
.field("parent", &self.parent)
.field("timeline", &self.timeline)
.field("min_nle_priority", &self.min_nle_priority)
@ -2232,7 +2232,7 @@ pub struct GESMarker {
impl ::std::fmt::Debug for GESMarker {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESMarker @ {:p}", self)).finish()
f.debug_struct(&format!("GESMarker @ {self:p}")).finish()
}
}
@ -2244,7 +2244,7 @@ pub struct GESMarkerList {
impl ::std::fmt::Debug for GESMarkerList {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESMarkerList @ {:p}", self))
f.debug_struct(&format!("GESMarkerList @ {self:p}"))
.finish()
}
}
@ -2260,7 +2260,7 @@ pub struct GESMultiFileSource {
impl ::std::fmt::Debug for GESMultiFileSource {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESMultiFileSource @ {:p}", self))
f.debug_struct(&format!("GESMultiFileSource @ {self:p}"))
.finish()
}
}
@ -2275,8 +2275,7 @@ pub struct GESOperation {
impl ::std::fmt::Debug for GESOperation {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESOperation @ {:p}", self))
.finish()
f.debug_struct(&format!("GESOperation @ {self:p}")).finish()
}
}
@ -2290,7 +2289,7 @@ pub struct GESOperationClip {
impl ::std::fmt::Debug for GESOperationClip {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESOperationClip @ {:p}", self))
f.debug_struct(&format!("GESOperationClip @ {self:p}"))
.finish()
}
}
@ -2305,7 +2304,7 @@ pub struct GESOverlayClip {
impl ::std::fmt::Debug for GESOverlayClip {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESOverlayClip @ {:p}", self))
f.debug_struct(&format!("GESOverlayClip @ {self:p}"))
.finish()
}
}
@ -2320,8 +2319,7 @@ pub struct GESPipeline {
impl ::std::fmt::Debug for GESPipeline {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESPipeline @ {:p}", self))
.finish()
f.debug_struct(&format!("GESPipeline @ {self:p}")).finish()
}
}
@ -2335,7 +2333,7 @@ pub struct GESPitiviFormatter {
impl ::std::fmt::Debug for GESPitiviFormatter {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESPitiviFormatter @ {:p}", self))
f.debug_struct(&format!("GESPitiviFormatter @ {self:p}"))
.field("parent", &self.parent)
.finish()
}
@ -2351,7 +2349,7 @@ pub struct GESProject {
impl ::std::fmt::Debug for GESProject {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESProject @ {:p}", self))
f.debug_struct(&format!("GESProject @ {self:p}"))
.field("parent", &self.parent)
.finish()
}
@ -2367,7 +2365,7 @@ pub struct GESSource {
impl ::std::fmt::Debug for GESSource {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESSource @ {:p}", self)).finish()
f.debug_struct(&format!("GESSource @ {self:p}")).finish()
}
}
@ -2381,7 +2379,7 @@ pub struct GESSourceClip {
impl ::std::fmt::Debug for GESSourceClip {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESSourceClip @ {:p}", self))
f.debug_struct(&format!("GESSourceClip @ {self:p}"))
.field("parent", &self.parent)
.finish()
}
@ -2395,7 +2393,7 @@ pub struct GESSourceClipAsset {
impl ::std::fmt::Debug for GESSourceClipAsset {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESSourceClipAsset @ {:p}", self))
f.debug_struct(&format!("GESSourceClipAsset @ {self:p}"))
.field("parent_instance", &self.parent_instance)
.finish()
}
@ -2411,7 +2409,7 @@ pub struct GESTestClip {
impl ::std::fmt::Debug for GESTestClip {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESTestClip @ {:p}", self))
f.debug_struct(&format!("GESTestClip @ {self:p}"))
.field("parent", &self.parent)
.finish()
}
@ -2427,7 +2425,7 @@ pub struct GESTextOverlay {
impl ::std::fmt::Debug for GESTextOverlay {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESTextOverlay @ {:p}", self))
f.debug_struct(&format!("GESTextOverlay @ {self:p}"))
.field("parent", &self.parent)
.finish()
}
@ -2443,7 +2441,7 @@ pub struct GESTextOverlayClip {
impl ::std::fmt::Debug for GESTextOverlayClip {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESTextOverlayClip @ {:p}", self))
f.debug_struct(&format!("GESTextOverlayClip @ {self:p}"))
.field("parent", &self.parent)
.finish()
}
@ -2461,7 +2459,7 @@ pub struct GESTimeline {
impl ::std::fmt::Debug for GESTimeline {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESTimeline @ {:p}", self))
f.debug_struct(&format!("GESTimeline @ {self:p}"))
.field("parent", &self.parent)
.field("layers", &self.layers)
.field("tracks", &self.tracks)
@ -2488,7 +2486,7 @@ pub struct GESTimelineElement {
impl ::std::fmt::Debug for GESTimelineElement {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESTimelineElement @ {:p}", self))
f.debug_struct(&format!("GESTimelineElement @ {self:p}"))
.field("parent_instance", &self.parent_instance)
.field("parent", &self.parent)
.field("asset", &self.asset)
@ -2513,7 +2511,7 @@ pub struct GESTitleClip {
impl ::std::fmt::Debug for GESTitleClip {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESTitleClip @ {:p}", self))
f.debug_struct(&format!("GESTitleClip @ {self:p}"))
.field("parent", &self.parent)
.finish()
}
@ -2529,7 +2527,7 @@ pub struct GESTitleSource {
impl ::std::fmt::Debug for GESTitleSource {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESTitleSource @ {:p}", self))
f.debug_struct(&format!("GESTitleSource @ {self:p}"))
.field("parent", &self.parent)
.finish()
}
@ -2546,7 +2544,7 @@ pub struct GESTrack {
impl ::std::fmt::Debug for GESTrack {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESTrack @ {:p}", self))
f.debug_struct(&format!("GESTrack @ {self:p}"))
.field("parent", &self.parent)
.field("type_", &self.type_)
.finish()
@ -2565,7 +2563,7 @@ pub struct GESTrackElement {
impl ::std::fmt::Debug for GESTrackElement {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESTrackElement @ {:p}", self))
f.debug_struct(&format!("GESTrackElement @ {self:p}"))
.field("parent", &self.parent)
.finish()
}
@ -2581,7 +2579,7 @@ pub struct GESTrackElementAsset {
impl ::std::fmt::Debug for GESTrackElementAsset {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESTrackElementAsset @ {:p}", self))
f.debug_struct(&format!("GESTrackElementAsset @ {self:p}"))
.field("parent", &self.parent)
.finish()
}
@ -2597,7 +2595,7 @@ pub struct GESTransition {
impl ::std::fmt::Debug for GESTransition {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESTransition @ {:p}", self))
f.debug_struct(&format!("GESTransition @ {self:p}"))
.finish()
}
}
@ -2613,7 +2611,7 @@ pub struct GESTransitionClip {
impl ::std::fmt::Debug for GESTransitionClip {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESTransitionClip @ {:p}", self))
f.debug_struct(&format!("GESTransitionClip @ {self:p}"))
.field("vtype", &self.vtype)
.finish()
}
@ -2629,7 +2627,7 @@ pub struct GESUriClip {
impl ::std::fmt::Debug for GESUriClip {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESUriClip @ {:p}", self))
f.debug_struct(&format!("GESUriClip @ {self:p}"))
.field("parent", &self.parent)
.finish()
}
@ -2645,7 +2643,7 @@ pub struct GESUriClipAsset {
impl ::std::fmt::Debug for GESUriClipAsset {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESUriClipAsset @ {:p}", self))
f.debug_struct(&format!("GESUriClipAsset @ {self:p}"))
.field("parent", &self.parent)
.finish()
}
@ -2661,7 +2659,7 @@ pub struct GESUriSourceAsset {
impl ::std::fmt::Debug for GESUriSourceAsset {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESUriSourceAsset @ {:p}", self))
f.debug_struct(&format!("GESUriSourceAsset @ {self:p}"))
.field("parent", &self.parent)
.finish()
}
@ -2677,7 +2675,7 @@ pub struct GESVideoSource {
impl ::std::fmt::Debug for GESVideoSource {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESVideoSource @ {:p}", self))
f.debug_struct(&format!("GESVideoSource @ {self:p}"))
.finish()
}
}
@ -2692,7 +2690,7 @@ pub struct GESVideoTestSource {
impl ::std::fmt::Debug for GESVideoTestSource {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESVideoTestSource @ {:p}", self))
f.debug_struct(&format!("GESVideoTestSource @ {self:p}"))
.finish()
}
}
@ -2707,7 +2705,7 @@ pub struct GESVideoTrack {
impl ::std::fmt::Debug for GESVideoTrack {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESVideoTrack @ {:p}", self))
f.debug_struct(&format!("GESVideoTrack @ {self:p}"))
.field("parent_instance", &self.parent_instance)
.finish()
}
@ -2723,7 +2721,7 @@ pub struct GESVideoTransition {
impl ::std::fmt::Debug for GESVideoTransition {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESVideoTransition @ {:p}", self))
f.debug_struct(&format!("GESVideoTransition @ {self:p}"))
.field("parent", &self.parent)
.finish()
}
@ -2740,7 +2738,7 @@ pub struct GESVideoUriSource {
impl ::std::fmt::Debug for GESVideoUriSource {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESVideoUriSource @ {:p}", self))
f.debug_struct(&format!("GESVideoUriSource @ {self:p}"))
.finish()
}
}
@ -2755,7 +2753,7 @@ pub struct GESXmlFormatter {
impl ::std::fmt::Debug for GESXmlFormatter {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESXmlFormatter @ {:p}", self))
f.debug_struct(&format!("GESXmlFormatter @ {self:p}"))
.field("parent", &self.parent)
.field("priv_", &self.priv_)
.field("_ges_reserved", &self._ges_reserved)
@ -2772,7 +2770,7 @@ pub struct GESExtractable {
impl ::std::fmt::Debug for GESExtractable {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
write!(f, "GESExtractable @ {:p}", self)
write!(f, "GESExtractable @ {self:p}")
}
}
@ -2784,7 +2782,7 @@ pub struct GESMetaContainer {
impl ::std::fmt::Debug for GESMetaContainer {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
write!(f, "GESMetaContainer @ {:p}", self)
write!(f, "GESMetaContainer @ {self:p}")
}
}

View file

@ -41,7 +41,7 @@ impl Compiler {
cmd.arg(out);
let status = cmd.spawn()?.wait()?;
if !status.success() {
return Err(format!("compilation command {:?} failed, {}", &cmd, status).into());
return Err(format!("compilation command {cmd:?} failed, {status}").into());
}
Ok(())
}
@ -57,7 +57,7 @@ fn get_var(name: &str, default: &str) -> Result<Vec<String>, Box<dyn Error>> {
match env::var(name) {
Ok(value) => Ok(shell_words::split(&value)?),
Err(env::VarError::NotPresent) => Ok(shell_words::split(default)?),
Err(err) => Err(format!("{} {}", name, err).into()),
Err(err) => Err(format!("{name} {err}").into()),
}
}
@ -71,7 +71,7 @@ fn pkg_config_cflags(packages: &[&str]) -> Result<Vec<String>, Box<dyn Error>> {
cmd.args(packages);
let out = cmd.output()?;
if !out.status.success() {
return Err(format!("command {:?} returned {}", &cmd, out.status).into());
return Err(format!("command {cmd:?} returned {}", out.status).into());
}
let stdout = str::from_utf8(&out.stdout)?;
Ok(shell_words::split(stdout.trim())?)
@ -127,15 +127,14 @@ fn cross_validate_constants_with_c() {
{
if rust_name != c_name {
results.record_failed();
eprintln!("Name mismatch:\nRust: {:?}\nC: {:?}", rust_name, c_name,);
eprintln!("Name mismatch:\nRust: {rust_name:?}\nC: {c_name:?}");
continue;
}
if rust_value != c_value {
results.record_failed();
eprintln!(
"Constant value mismatch for {}\nRust: {:?}\nC: {:?}",
rust_name, rust_value, &c_value
"Constant value mismatch for {rust_name}\nRust: {rust_value:?}\nC: {c_value:?}",
);
continue;
}
@ -165,16 +164,13 @@ fn cross_validate_layout_with_c() {
{
if rust_name != c_name {
results.record_failed();
eprintln!("Name mismatch:\nRust: {:?}\nC: {:?}", rust_name, c_name,);
eprintln!("Name mismatch:\nRust: {rust_name:?}\nC: {c_name:?}");
continue;
}
if rust_layout != c_layout {
results.record_failed();
eprintln!(
"Layout mismatch for {}\nRust: {:?}\nC: {:?}",
rust_name, rust_layout, &c_layout
);
eprintln!("Layout mismatch for {rust_name}\nRust: {rust_layout:?}\nC: {c_layout:?}",);
continue;
}
@ -195,7 +191,7 @@ fn get_c_output(name: &str) -> Result<String, Box<dyn Error>> {
let mut abi_cmd = Command::new(exe);
let output = abi_cmd.output()?;
if !output.status.success() {
return Err(format!("command {:?} failed, {:?}", &abi_cmd, &output).into());
return Err(format!("command {abi_cmd:?} failed, {output:?}").into());
}
Ok(String::from_utf8(output.stdout)?)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 952ff416b599)
Generated by gir (https://github.com/gtk-rs/gir @ e79806af2905)
from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 15396abcca88)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ad1d9ed0a03e)

View file

@ -12,7 +12,7 @@ fn main() {} // prevent linking libraries to avoid documentation failure
#[cfg(not(feature = "dox"))]
fn main() {
if let Err(s) = system_deps::Config::new().probe() {
println!("cargo:warning={}", s);
println!("cargo:warning={s}");
process::exit(1);
}
}

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 952ff416b599)
Generated by gir (https://github.com/gtk-rs/gir @ e79806af2905)
from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 15396abcca88)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ad1d9ed0a03e)

View file

@ -35,7 +35,7 @@ pub struct GstGLDisplayEGLClass {
impl ::std::fmt::Debug for GstGLDisplayEGLClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLDisplayEGLClass @ {:p}", self))
f.debug_struct(&format!("GstGLDisplayEGLClass @ {self:p}"))
.field("object_class", &self.object_class)
.field("_padding", &self._padding)
.finish()
@ -54,7 +54,7 @@ pub struct GstGLDisplayEGL {
impl ::std::fmt::Debug for GstGLDisplayEGL {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLDisplayEGL @ {:p}", self))
f.debug_struct(&format!("GstGLDisplayEGL @ {self:p}"))
.field("parent", &self.parent)
.finish()
}

View file

@ -41,7 +41,7 @@ impl Compiler {
cmd.arg(out);
let status = cmd.spawn()?.wait()?;
if !status.success() {
return Err(format!("compilation command {:?} failed, {}", &cmd, status).into());
return Err(format!("compilation command {cmd:?} failed, {status}").into());
}
Ok(())
}
@ -57,7 +57,7 @@ fn get_var(name: &str, default: &str) -> Result<Vec<String>, Box<dyn Error>> {
match env::var(name) {
Ok(value) => Ok(shell_words::split(&value)?),
Err(env::VarError::NotPresent) => Ok(shell_words::split(default)?),
Err(err) => Err(format!("{} {}", name, err).into()),
Err(err) => Err(format!("{name} {err}").into()),
}
}
@ -71,7 +71,7 @@ fn pkg_config_cflags(packages: &[&str]) -> Result<Vec<String>, Box<dyn Error>> {
cmd.args(packages);
let out = cmd.output()?;
if !out.status.success() {
return Err(format!("command {:?} returned {}", &cmd, out.status).into());
return Err(format!("command {cmd:?} returned {}", out.status).into());
}
let stdout = str::from_utf8(&out.stdout)?;
Ok(shell_words::split(stdout.trim())?)
@ -127,15 +127,14 @@ fn cross_validate_constants_with_c() {
{
if rust_name != c_name {
results.record_failed();
eprintln!("Name mismatch:\nRust: {:?}\nC: {:?}", rust_name, c_name,);
eprintln!("Name mismatch:\nRust: {rust_name:?}\nC: {c_name:?}");
continue;
}
if rust_value != c_value {
results.record_failed();
eprintln!(
"Constant value mismatch for {}\nRust: {:?}\nC: {:?}",
rust_name, rust_value, &c_value
"Constant value mismatch for {rust_name}\nRust: {rust_value:?}\nC: {c_value:?}",
);
continue;
}
@ -165,16 +164,13 @@ fn cross_validate_layout_with_c() {
{
if rust_name != c_name {
results.record_failed();
eprintln!("Name mismatch:\nRust: {:?}\nC: {:?}", rust_name, c_name,);
eprintln!("Name mismatch:\nRust: {rust_name:?}\nC: {c_name:?}");
continue;
}
if rust_layout != c_layout {
results.record_failed();
eprintln!(
"Layout mismatch for {}\nRust: {:?}\nC: {:?}",
rust_name, rust_layout, &c_layout
);
eprintln!("Layout mismatch for {rust_name}\nRust: {rust_layout:?}\nC: {c_layout:?}",);
continue;
}
@ -195,7 +191,7 @@ fn get_c_output(name: &str) -> Result<String, Box<dyn Error>> {
let mut abi_cmd = Command::new(exe);
let output = abi_cmd.output()?;
if !output.status.success() {
return Err(format!("command {:?} failed, {:?}", &abi_cmd, &output).into());
return Err(format!("command {abi_cmd:?} failed, {output:?}").into());
}
Ok(String::from_utf8(output.stdout)?)

View file

@ -15,13 +15,13 @@ bitflags! {
#[doc(alias = "GstGLAPI")]
pub struct GLAPI: u32 {
#[doc(alias = "GST_GL_API_OPENGL")]
const OPENGL = ffi::GST_GL_API_OPENGL as u32;
const OPENGL = ffi::GST_GL_API_OPENGL as _;
#[doc(alias = "GST_GL_API_OPENGL3")]
const OPENGL3 = ffi::GST_GL_API_OPENGL3 as u32;
const OPENGL3 = ffi::GST_GL_API_OPENGL3 as _;
#[doc(alias = "GST_GL_API_GLES1")]
const GLES1 = ffi::GST_GL_API_GLES1 as u32;
const GLES1 = ffi::GST_GL_API_GLES1 as _;
#[doc(alias = "GST_GL_API_GLES2")]
const GLES2 = ffi::GST_GL_API_GLES2 as u32;
const GLES2 = ffi::GST_GL_API_GLES2 as _;
}
}
@ -103,13 +103,13 @@ bitflags! {
#[doc(alias = "GstGLConfigSurfaceType")]
pub struct GLConfigSurfaceType: u32 {
#[doc(alias = "GST_GL_CONFIG_SURFACE_TYPE_NONE")]
const NONE = ffi::GST_GL_CONFIG_SURFACE_TYPE_NONE as u32;
const NONE = ffi::GST_GL_CONFIG_SURFACE_TYPE_NONE as _;
#[doc(alias = "GST_GL_CONFIG_SURFACE_TYPE_WINDOW")]
const WINDOW = ffi::GST_GL_CONFIG_SURFACE_TYPE_WINDOW as u32;
const WINDOW = ffi::GST_GL_CONFIG_SURFACE_TYPE_WINDOW as _;
#[doc(alias = "GST_GL_CONFIG_SURFACE_TYPE_PBUFFER")]
const PBUFFER = ffi::GST_GL_CONFIG_SURFACE_TYPE_PBUFFER as u32;
const PBUFFER = ffi::GST_GL_CONFIG_SURFACE_TYPE_PBUFFER as _;
#[doc(alias = "GST_GL_CONFIG_SURFACE_TYPE_PIXMAP")]
const PIXMAP = ffi::GST_GL_CONFIG_SURFACE_TYPE_PIXMAP as u32;
const PIXMAP = ffi::GST_GL_CONFIG_SURFACE_TYPE_PIXMAP as _;
}
}
@ -190,37 +190,37 @@ bitflags! {
#[doc(alias = "GstGLDisplayType")]
pub struct GLDisplayType: u32 {
#[doc(alias = "GST_GL_DISPLAY_TYPE_X11")]
const X11 = ffi::GST_GL_DISPLAY_TYPE_X11 as u32;
const X11 = ffi::GST_GL_DISPLAY_TYPE_X11 as _;
#[doc(alias = "GST_GL_DISPLAY_TYPE_WAYLAND")]
const WAYLAND = ffi::GST_GL_DISPLAY_TYPE_WAYLAND as u32;
const WAYLAND = ffi::GST_GL_DISPLAY_TYPE_WAYLAND as _;
#[doc(alias = "GST_GL_DISPLAY_TYPE_COCOA")]
const COCOA = ffi::GST_GL_DISPLAY_TYPE_COCOA as u32;
const COCOA = ffi::GST_GL_DISPLAY_TYPE_COCOA as _;
#[doc(alias = "GST_GL_DISPLAY_TYPE_WIN32")]
const WIN32 = ffi::GST_GL_DISPLAY_TYPE_WIN32 as u32;
const WIN32 = ffi::GST_GL_DISPLAY_TYPE_WIN32 as _;
#[doc(alias = "GST_GL_DISPLAY_TYPE_DISPMANX")]
const DISPMANX = ffi::GST_GL_DISPLAY_TYPE_DISPMANX as u32;
const DISPMANX = ffi::GST_GL_DISPLAY_TYPE_DISPMANX as _;
#[doc(alias = "GST_GL_DISPLAY_TYPE_EGL")]
const EGL = ffi::GST_GL_DISPLAY_TYPE_EGL as u32;
const EGL = ffi::GST_GL_DISPLAY_TYPE_EGL as _;
#[doc(alias = "GST_GL_DISPLAY_TYPE_VIV_FB")]
const VIV_FB = ffi::GST_GL_DISPLAY_TYPE_VIV_FB as u32;
const VIV_FB = ffi::GST_GL_DISPLAY_TYPE_VIV_FB as _;
#[doc(alias = "GST_GL_DISPLAY_TYPE_GBM")]
const GBM = ffi::GST_GL_DISPLAY_TYPE_GBM as u32;
const GBM = ffi::GST_GL_DISPLAY_TYPE_GBM as _;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
#[doc(alias = "GST_GL_DISPLAY_TYPE_EGL_DEVICE")]
const EGL_DEVICE = ffi::GST_GL_DISPLAY_TYPE_EGL_DEVICE as u32;
const EGL_DEVICE = ffi::GST_GL_DISPLAY_TYPE_EGL_DEVICE as _;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
#[doc(alias = "GST_GL_DISPLAY_TYPE_EAGL")]
const EAGL = ffi::GST_GL_DISPLAY_TYPE_EAGL as u32;
const EAGL = ffi::GST_GL_DISPLAY_TYPE_EAGL as _;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
#[doc(alias = "GST_GL_DISPLAY_TYPE_WINRT")]
const WINRT = ffi::GST_GL_DISPLAY_TYPE_WINRT as u32;
const WINRT = ffi::GST_GL_DISPLAY_TYPE_WINRT as _;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
#[doc(alias = "GST_GL_DISPLAY_TYPE_ANDROID")]
const ANDROID = ffi::GST_GL_DISPLAY_TYPE_ANDROID as u32;
const ANDROID = ffi::GST_GL_DISPLAY_TYPE_ANDROID as _;
}
}
@ -278,15 +278,15 @@ bitflags! {
#[doc(alias = "GstGLPlatform")]
pub struct GLPlatform: u32 {
#[doc(alias = "GST_GL_PLATFORM_EGL")]
const EGL = ffi::GST_GL_PLATFORM_EGL as u32;
const EGL = ffi::GST_GL_PLATFORM_EGL as _;
#[doc(alias = "GST_GL_PLATFORM_GLX")]
const GLX = ffi::GST_GL_PLATFORM_GLX as u32;
const GLX = ffi::GST_GL_PLATFORM_GLX as _;
#[doc(alias = "GST_GL_PLATFORM_WGL")]
const WGL = ffi::GST_GL_PLATFORM_WGL as u32;
const WGL = ffi::GST_GL_PLATFORM_WGL as _;
#[doc(alias = "GST_GL_PLATFORM_CGL")]
const CGL = ffi::GST_GL_PLATFORM_CGL as u32;
const CGL = ffi::GST_GL_PLATFORM_CGL as _;
#[doc(alias = "GST_GL_PLATFORM_EAGL")]
const EAGL = ffi::GST_GL_PLATFORM_EAGL as u32;
const EAGL = ffi::GST_GL_PLATFORM_EAGL as _;
}
}
@ -370,11 +370,11 @@ bitflags! {
#[doc(alias = "GstGLSLProfile")]
pub struct GLSLProfile: u32 {
#[doc(alias = "GST_GLSL_PROFILE_ES")]
const ES = ffi::GST_GLSL_PROFILE_ES as u32;
const ES = ffi::GST_GLSL_PROFILE_ES as _;
#[doc(alias = "GST_GLSL_PROFILE_CORE")]
const CORE = ffi::GST_GLSL_PROFILE_CORE as u32;
const CORE = ffi::GST_GLSL_PROFILE_CORE as _;
#[doc(alias = "GST_GLSL_PROFILE_COMPATIBILITY")]
const COMPATIBILITY = ffi::GST_GLSL_PROFILE_COMPATIBILITY as u32;
const COMPATIBILITY = ffi::GST_GLSL_PROFILE_COMPATIBILITY as _;
}
}

View file

@ -22,6 +22,7 @@ impl GLMemoryAllocator {
#[doc(alias = "gst_gl_memory_allocator_get_default")]
#[doc(alias = "get_default")]
#[allow(clippy::should_implement_trait)]
pub fn default(context: &impl IsA<GLContext>) -> GLMemoryAllocator {
skip_assert_initialized!();
unsafe {

View file

@ -191,7 +191,7 @@ impl GLShader {
#[doc(alias = "gst_gl_shader_set_uniform_1fv")]
pub fn set_uniform_1fv(&self, name: &str, value: &[f32]) {
let count = value.len() as u32;
let count = value.len() as _;
unsafe {
ffi::gst_gl_shader_set_uniform_1fv(
self.to_glib_none().0,
@ -211,7 +211,7 @@ impl GLShader {
#[doc(alias = "gst_gl_shader_set_uniform_1iv")]
pub fn set_uniform_1iv(&self, name: &str, value: &[i32]) {
let count = value.len() as u32;
let count = value.len() as _;
unsafe {
ffi::gst_gl_shader_set_uniform_1iv(
self.to_glib_none().0,
@ -231,7 +231,7 @@ impl GLShader {
#[doc(alias = "gst_gl_shader_set_uniform_2fv")]
pub fn set_uniform_2fv(&self, name: &str, value: &[f32]) {
let count = value.len() as u32;
let count = value.len() as _;
unsafe {
ffi::gst_gl_shader_set_uniform_2fv(
self.to_glib_none().0,
@ -251,7 +251,7 @@ impl GLShader {
#[doc(alias = "gst_gl_shader_set_uniform_2iv")]
pub fn set_uniform_2iv(&self, name: &str, value: &[i32]) {
let count = value.len() as u32;
let count = value.len() as _;
unsafe {
ffi::gst_gl_shader_set_uniform_2iv(
self.to_glib_none().0,
@ -277,7 +277,7 @@ impl GLShader {
#[doc(alias = "gst_gl_shader_set_uniform_3fv")]
pub fn set_uniform_3fv(&self, name: &str, value: &[f32]) {
let count = value.len() as u32;
let count = value.len() as _;
unsafe {
ffi::gst_gl_shader_set_uniform_3fv(
self.to_glib_none().0,
@ -303,7 +303,7 @@ impl GLShader {
#[doc(alias = "gst_gl_shader_set_uniform_3iv")]
pub fn set_uniform_3iv(&self, name: &str, value: &[i32]) {
let count = value.len() as u32;
let count = value.len() as _;
unsafe {
ffi::gst_gl_shader_set_uniform_3iv(
self.to_glib_none().0,
@ -330,7 +330,7 @@ impl GLShader {
#[doc(alias = "gst_gl_shader_set_uniform_4fv")]
pub fn set_uniform_4fv(&self, name: &str, value: &[f32]) {
let count = value.len() as u32;
let count = value.len() as _;
unsafe {
ffi::gst_gl_shader_set_uniform_4fv(
self.to_glib_none().0,
@ -357,7 +357,7 @@ impl GLShader {
#[doc(alias = "gst_gl_shader_set_uniform_4iv")]
pub fn set_uniform_4iv(&self, name: &str, value: &[i32]) {
let count = value.len() as u32;
let count = value.len() as _;
unsafe {
ffi::gst_gl_shader_set_uniform_4iv(
self.to_glib_none().0,

View file

@ -82,7 +82,7 @@ impl GLSLStage {
str: &[&str],
) -> GLSLStage {
skip_assert_initialized!();
let n_strings = str.len() as i32;
let n_strings = str.len() as _;
unsafe {
from_glib_none(ffi::gst_glsl_stage_new_with_strings(
context.as_ref().to_glib_none().0,
@ -140,7 +140,7 @@ impl GLSLStage {
profile: GLSLProfile,
str: &[&str],
) -> Result<(), glib::error::BoolError> {
let n_strings = str.len() as i32;
let n_strings = str.len() as _;
unsafe {
glib::result_from_gboolean!(
ffi::gst_glsl_stage_set_strings(

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 952ff416b599)
Generated by gir (https://github.com/gtk-rs/gir @ e79806af2905)
from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 15396abcca88)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ad1d9ed0a03e)

View file

@ -12,7 +12,7 @@ fn main() {} // prevent linking libraries to avoid documentation failure
#[cfg(not(feature = "dox"))]
fn main() {
if let Err(s) = system_deps::Config::new().probe() {
println!("cargo:warning={}", s);
println!("cargo:warning={s}");
process::exit(1);
}
}

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 952ff416b599)
Generated by gir (https://github.com/gtk-rs/gir @ e79806af2905)
from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 15396abcca88)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ad1d9ed0a03e)

View file

@ -282,7 +282,7 @@ pub struct GstGLAllocationParams {
impl ::std::fmt::Debug for GstGLAllocationParams {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLAllocationParams @ {:p}", self))
f.debug_struct(&format!("GstGLAllocationParams @ {self:p}"))
.field("struct_size", &self.struct_size)
.field("copy", &self.copy)
.field("free", &self.free)
@ -317,7 +317,7 @@ pub struct GstGLAsyncDebug {
impl ::std::fmt::Debug for GstGLAsyncDebug {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLAsyncDebug @ {:p}", self))
f.debug_struct(&format!("GstGLAsyncDebug @ {self:p}"))
.finish()
}
}
@ -341,7 +341,7 @@ pub struct GstGLBaseFilterClass {
impl ::std::fmt::Debug for GstGLBaseFilterClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLBaseFilterClass @ {:p}", self))
f.debug_struct(&format!("GstGLBaseFilterClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.field("supported_gl_api", &self.supported_gl_api)
.field("gl_start", &self.gl_start)
@ -379,7 +379,7 @@ pub struct GstGLBaseMemory {
impl ::std::fmt::Debug for GstGLBaseMemory {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLBaseMemory @ {:p}", self))
f.debug_struct(&format!("GstGLBaseMemory @ {self:p}"))
.field("mem", &self.mem)
.field("context", &self.context)
.field("lock", &self.lock)
@ -407,7 +407,7 @@ pub struct GstGLBaseMemoryAllocatorClass {
impl ::std::fmt::Debug for GstGLBaseMemoryAllocatorClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLBaseMemoryAllocatorClass @ {:p}", self))
f.debug_struct(&format!("GstGLBaseMemoryAllocatorClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.field("alloc", &self.alloc)
.field("create", &self.create)
@ -433,7 +433,7 @@ pub struct GstGLBaseSrcClass {
impl ::std::fmt::Debug for GstGLBaseSrcClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLBaseSrcClass @ {:p}", self))
f.debug_struct(&format!("GstGLBaseSrcClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.field("supported_gl_api", &self.supported_gl_api)
.field("gl_start", &self.gl_start)
@ -462,7 +462,7 @@ pub struct GstGLBuffer {
impl ::std::fmt::Debug for GstGLBuffer {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLBuffer @ {:p}", self))
f.debug_struct(&format!("GstGLBuffer @ {self:p}"))
.field("mem", &self.mem)
.field("id", &self.id)
.field("target", &self.target)
@ -482,7 +482,7 @@ pub struct GstGLBufferAllocationParams {
impl ::std::fmt::Debug for GstGLBufferAllocationParams {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLBufferAllocationParams @ {:p}", self))
f.debug_struct(&format!("GstGLBufferAllocationParams @ {self:p}"))
.field("parent", &self.parent)
.field("gl_target", &self.gl_target)
.field("gl_usage", &self.gl_usage)
@ -499,7 +499,7 @@ pub struct GstGLBufferAllocatorClass {
impl ::std::fmt::Debug for GstGLBufferAllocatorClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLBufferAllocatorClass @ {:p}", self))
f.debug_struct(&format!("GstGLBufferAllocatorClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.finish()
}
@ -514,7 +514,7 @@ pub struct GstGLBufferPoolClass {
impl ::std::fmt::Debug for GstGLBufferPoolClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLBufferPoolClass @ {:p}", self))
f.debug_struct(&format!("GstGLBufferPoolClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.finish()
}
@ -537,7 +537,7 @@ pub struct GstGLColorConvertClass {
impl ::std::fmt::Debug for GstGLColorConvertClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLColorConvertClass @ {:p}", self))
f.debug_struct(&format!("GstGLColorConvertClass @ {self:p}"))
.finish()
}
}
@ -583,7 +583,7 @@ pub struct GstGLContextClass {
impl ::std::fmt::Debug for GstGLContextClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLContextClass @ {:p}", self))
f.debug_struct(&format!("GstGLContextClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.field("get_current_context", &self.get_current_context)
.field("get_gl_context", &self.get_gl_context)
@ -622,7 +622,7 @@ pub struct GstGLDisplayClass {
impl ::std::fmt::Debug for GstGLDisplayClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLDisplayClass @ {:p}", self))
f.debug_struct(&format!("GstGLDisplayClass @ {self:p}"))
.field("object_class", &self.object_class)
.field("get_handle", &self.get_handle)
.field("create_window", &self.create_window)
@ -669,7 +669,7 @@ pub struct GstGLFilterClass {
impl ::std::fmt::Debug for GstGLFilterClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLFilterClass @ {:p}", self))
f.debug_struct(&format!("GstGLFilterClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.field("set_caps", &self.set_caps)
.field("filter", &self.filter)
@ -689,7 +689,7 @@ pub struct GstGLFramebufferClass {
impl ::std::fmt::Debug for GstGLFramebufferClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLFramebufferClass @ {:p}", self))
f.debug_struct(&format!("GstGLFramebufferClass @ {self:p}"))
.finish()
}
}
@ -729,7 +729,7 @@ pub struct GstGLMemory {
impl ::std::fmt::Debug for GstGLMemory {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLMemory @ {:p}", self))
f.debug_struct(&format!("GstGLMemory @ {self:p}"))
.field("mem", &self.mem)
.field("tex_id", &self.tex_id)
.field("tex_target", &self.tex_target)
@ -757,7 +757,7 @@ pub struct GstGLMemoryAllocatorClass {
impl ::std::fmt::Debug for GstGLMemoryAllocatorClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLMemoryAllocatorClass @ {:p}", self))
f.debug_struct(&format!("GstGLMemoryAllocatorClass @ {self:p}"))
.field("map", &self.map)
.field("copy", &self.copy)
.field("unmap", &self.unmap)
@ -775,7 +775,7 @@ pub struct GstGLMemoryPBO {
impl ::std::fmt::Debug for GstGLMemoryPBO {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLMemoryPBO @ {:p}", self))
f.debug_struct(&format!("GstGLMemoryPBO @ {self:p}"))
.finish()
}
}
@ -789,7 +789,7 @@ pub struct GstGLMemoryPBOAllocatorClass {
impl ::std::fmt::Debug for GstGLMemoryPBOAllocatorClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLMemoryPBOAllocatorClass @ {:p}", self))
f.debug_struct(&format!("GstGLMemoryPBOAllocatorClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.finish()
}
@ -804,7 +804,7 @@ pub struct GstGLOverlayCompositorClass {
impl ::std::fmt::Debug for GstGLOverlayCompositorClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLOverlayCompositorClass @ {:p}", self))
f.debug_struct(&format!("GstGLOverlayCompositorClass @ {self:p}"))
.field("object_class", &self.object_class)
.finish()
}
@ -824,7 +824,7 @@ pub struct GstGLQuery {
impl ::std::fmt::Debug for GstGLQuery {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLQuery @ {:p}", self)).finish()
f.debug_struct(&format!("GstGLQuery @ {self:p}")).finish()
}
}
@ -842,7 +842,7 @@ pub struct GstGLRenderbuffer {
impl ::std::fmt::Debug for GstGLRenderbuffer {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLRenderbuffer @ {:p}", self))
f.debug_struct(&format!("GstGLRenderbuffer @ {self:p}"))
.field("renderbuffer_id", &self.renderbuffer_id)
.field("renderbuffer_format", &self.renderbuffer_format)
.field("width", &self.width)
@ -864,7 +864,7 @@ pub struct GstGLRenderbufferAllocationParams {
impl ::std::fmt::Debug for GstGLRenderbufferAllocationParams {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLRenderbufferAllocationParams @ {:p}", self))
f.debug_struct(&format!("GstGLRenderbufferAllocationParams @ {self:p}"))
.field("renderbuffer_format", &self.renderbuffer_format)
.field("width", &self.width)
.field("height", &self.height)
@ -881,7 +881,7 @@ pub struct GstGLRenderbufferAllocatorClass {
impl ::std::fmt::Debug for GstGLRenderbufferAllocatorClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLRenderbufferAllocatorClass @ {:p}", self))
f.debug_struct(&format!("GstGLRenderbufferAllocatorClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.finish()
}
@ -896,7 +896,7 @@ pub struct GstGLSLStageClass {
impl ::std::fmt::Debug for GstGLSLStageClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLSLStageClass @ {:p}", self))
f.debug_struct(&format!("GstGLSLStageClass @ {self:p}"))
.finish()
}
}
@ -917,7 +917,7 @@ pub struct GstGLShaderClass {
impl ::std::fmt::Debug for GstGLShaderClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLShaderClass @ {:p}", self))
f.debug_struct(&format!("GstGLShaderClass @ {self:p}"))
.finish()
}
}
@ -956,7 +956,7 @@ pub struct GstGLSyncMeta {
impl ::std::fmt::Debug for GstGLSyncMeta {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLSyncMeta @ {:p}", self))
f.debug_struct(&format!("GstGLSyncMeta @ {self:p}"))
.field("parent", &self.parent)
.field("context", &self.context)
.field("data", &self.data)
@ -982,7 +982,7 @@ pub struct GstGLUploadClass {
impl ::std::fmt::Debug for GstGLUploadClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLUploadClass @ {:p}", self))
f.debug_struct(&format!("GstGLUploadClass @ {self:p}"))
.field("object_class", &self.object_class)
.finish()
}
@ -1010,7 +1010,7 @@ pub struct GstGLVideoAllocationParams {
impl ::std::fmt::Debug for GstGLVideoAllocationParams {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLVideoAllocationParams @ {:p}", self))
f.debug_struct(&format!("GstGLVideoAllocationParams @ {self:p}"))
.field("parent", &self.parent)
.field("v_info", &self.v_info)
.field("plane", &self.plane)
@ -1030,7 +1030,7 @@ pub struct GstGLViewConvertClass {
impl ::std::fmt::Debug for GstGLViewConvertClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLViewConvertClass @ {:p}", self))
f.debug_struct(&format!("GstGLViewConvertClass @ {self:p}"))
.finish()
}
}
@ -1072,7 +1072,7 @@ pub struct GstGLWindowClass {
impl ::std::fmt::Debug for GstGLWindowClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLWindowClass @ {:p}", self))
f.debug_struct(&format!("GstGLWindowClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.field("get_display", &self.get_display)
.field("set_window_handle", &self.set_window_handle)
@ -1118,7 +1118,7 @@ pub struct GstGLBaseFilter {
impl ::std::fmt::Debug for GstGLBaseFilter {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLBaseFilter @ {:p}", self))
f.debug_struct(&format!("GstGLBaseFilter @ {self:p}"))
.field("parent", &self.parent)
.field("display", &self.display)
.field("context", &self.context)
@ -1138,7 +1138,7 @@ pub struct GstGLBaseMemoryAllocator {
impl ::std::fmt::Debug for GstGLBaseMemoryAllocator {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLBaseMemoryAllocator @ {:p}", self))
f.debug_struct(&format!("GstGLBaseMemoryAllocator @ {self:p}"))
.finish()
}
}
@ -1158,7 +1158,7 @@ pub struct GstGLBaseSrc {
impl ::std::fmt::Debug for GstGLBaseSrc {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLBaseSrc @ {:p}", self))
f.debug_struct(&format!("GstGLBaseSrc @ {self:p}"))
.field("parent", &self.parent)
.field("display", &self.display)
.field("context", &self.context)
@ -1178,7 +1178,7 @@ pub struct GstGLBufferAllocator {
impl ::std::fmt::Debug for GstGLBufferAllocator {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLBufferAllocator @ {:p}", self))
f.debug_struct(&format!("GstGLBufferAllocator @ {self:p}"))
.field("parent", &self.parent)
.finish()
}
@ -1195,7 +1195,7 @@ pub struct GstGLBufferPool {
impl ::std::fmt::Debug for GstGLBufferPool {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLBufferPool @ {:p}", self))
f.debug_struct(&format!("GstGLBufferPool @ {self:p}"))
.field("bufferpool", &self.bufferpool)
.field("context", &self.context)
.finish()
@ -1221,7 +1221,7 @@ pub struct GstGLColorConvert {
impl ::std::fmt::Debug for GstGLColorConvert {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLColorConvert @ {:p}", self))
f.debug_struct(&format!("GstGLColorConvert @ {self:p}"))
.finish()
}
}
@ -1239,7 +1239,7 @@ pub struct GstGLContext {
impl ::std::fmt::Debug for GstGLContext {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLContext @ {:p}", self))
f.debug_struct(&format!("GstGLContext @ {self:p}"))
.field("gl_vtable", &self.gl_vtable)
.finish()
}
@ -1259,8 +1259,7 @@ pub struct GstGLDisplay {
impl ::std::fmt::Debug for GstGLDisplay {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLDisplay @ {:p}", self))
.finish()
f.debug_struct(&format!("GstGLDisplay @ {self:p}")).finish()
}
}
@ -1289,7 +1288,7 @@ pub struct GstGLFilter {
impl ::std::fmt::Debug for GstGLFilter {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLFilter @ {:p}", self))
f.debug_struct(&format!("GstGLFilter @ {self:p}"))
.field("parent", &self.parent)
.field("in_info", &self.in_info)
.field("out_info", &self.out_info)
@ -1314,7 +1313,7 @@ pub struct GstGLFramebuffer {
impl ::std::fmt::Debug for GstGLFramebuffer {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLFramebuffer @ {:p}", self))
f.debug_struct(&format!("GstGLFramebuffer @ {self:p}"))
.finish()
}
}
@ -1328,7 +1327,7 @@ pub struct GstGLMemoryAllocator {
impl ::std::fmt::Debug for GstGLMemoryAllocator {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLMemoryAllocator @ {:p}", self))
f.debug_struct(&format!("GstGLMemoryAllocator @ {self:p}"))
.finish()
}
}
@ -1342,7 +1341,7 @@ pub struct GstGLMemoryPBOAllocator {
impl ::std::fmt::Debug for GstGLMemoryPBOAllocator {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLMemoryPBOAllocator @ {:p}", self))
f.debug_struct(&format!("GstGLMemoryPBOAllocator @ {self:p}"))
.field("parent", &self.parent)
.finish()
}
@ -1364,7 +1363,7 @@ pub struct GstGLOverlayCompositor {
impl ::std::fmt::Debug for GstGLOverlayCompositor {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLOverlayCompositor @ {:p}", self))
f.debug_struct(&format!("GstGLOverlayCompositor @ {self:p}"))
.finish()
}
}
@ -1378,7 +1377,7 @@ pub struct GstGLRenderbufferAllocator {
impl ::std::fmt::Debug for GstGLRenderbufferAllocator {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLRenderbufferAllocator @ {:p}", self))
f.debug_struct(&format!("GstGLRenderbufferAllocator @ {self:p}"))
.field("parent", &self.parent)
.finish()
}
@ -1395,8 +1394,7 @@ pub struct GstGLSLStage {
impl ::std::fmt::Debug for GstGLSLStage {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLSLStage @ {:p}", self))
.finish()
f.debug_struct(&format!("GstGLSLStage @ {self:p}")).finish()
}
}
@ -1411,7 +1409,7 @@ pub struct GstGLShader {
impl ::std::fmt::Debug for GstGLShader {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLShader @ {:p}", self))
f.debug_struct(&format!("GstGLShader @ {self:p}"))
.field("parent", &self.parent)
.field("context", &self.context)
.finish()
@ -1429,7 +1427,7 @@ pub struct GstGLUpload {
impl ::std::fmt::Debug for GstGLUpload {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLUpload @ {:p}", self))
f.debug_struct(&format!("GstGLUpload @ {self:p}"))
.field("parent", &self.parent)
.field("context", &self.context)
.finish()
@ -1461,7 +1459,7 @@ pub struct GstGLViewConvert {
impl ::std::fmt::Debug for GstGLViewConvert {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLViewConvert @ {:p}", self))
f.debug_struct(&format!("GstGLViewConvert @ {self:p}"))
.field("object", &self.object)
.field("context", &self.context)
.field("shader", &self.shader)
@ -1507,8 +1505,7 @@ pub struct GstGLWindow {
impl ::std::fmt::Debug for GstGLWindow {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLWindow @ {:p}", self))
.finish()
f.debug_struct(&format!("GstGLWindow @ {self:p}")).finish()
}
}

View file

@ -41,7 +41,7 @@ impl Compiler {
cmd.arg(out);
let status = cmd.spawn()?.wait()?;
if !status.success() {
return Err(format!("compilation command {:?} failed, {}", &cmd, status).into());
return Err(format!("compilation command {cmd:?} failed, {status}").into());
}
Ok(())
}
@ -57,7 +57,7 @@ fn get_var(name: &str, default: &str) -> Result<Vec<String>, Box<dyn Error>> {
match env::var(name) {
Ok(value) => Ok(shell_words::split(&value)?),
Err(env::VarError::NotPresent) => Ok(shell_words::split(default)?),
Err(err) => Err(format!("{} {}", name, err).into()),
Err(err) => Err(format!("{name} {err}").into()),
}
}
@ -71,7 +71,7 @@ fn pkg_config_cflags(packages: &[&str]) -> Result<Vec<String>, Box<dyn Error>> {
cmd.args(packages);
let out = cmd.output()?;
if !out.status.success() {
return Err(format!("command {:?} returned {}", &cmd, out.status).into());
return Err(format!("command {cmd:?} returned {}", out.status).into());
}
let stdout = str::from_utf8(&out.stdout)?;
Ok(shell_words::split(stdout.trim())?)
@ -127,15 +127,14 @@ fn cross_validate_constants_with_c() {
{
if rust_name != c_name {
results.record_failed();
eprintln!("Name mismatch:\nRust: {:?}\nC: {:?}", rust_name, c_name,);
eprintln!("Name mismatch:\nRust: {rust_name:?}\nC: {c_name:?}");
continue;
}
if rust_value != c_value {
results.record_failed();
eprintln!(
"Constant value mismatch for {}\nRust: {:?}\nC: {:?}",
rust_name, rust_value, &c_value
"Constant value mismatch for {rust_name}\nRust: {rust_value:?}\nC: {c_value:?}",
);
continue;
}
@ -165,16 +164,13 @@ fn cross_validate_layout_with_c() {
{
if rust_name != c_name {
results.record_failed();
eprintln!("Name mismatch:\nRust: {:?}\nC: {:?}", rust_name, c_name,);
eprintln!("Name mismatch:\nRust: {rust_name:?}\nC: {c_name:?}");
continue;
}
if rust_layout != c_layout {
results.record_failed();
eprintln!(
"Layout mismatch for {}\nRust: {:?}\nC: {:?}",
rust_name, rust_layout, &c_layout
);
eprintln!("Layout mismatch for {rust_name}\nRust: {rust_layout:?}\nC: {c_layout:?}",);
continue;
}
@ -195,7 +191,7 @@ fn get_c_output(name: &str) -> Result<String, Box<dyn Error>> {
let mut abi_cmd = Command::new(exe);
let output = abi_cmd.output()?;
if !output.status.success() {
return Err(format!("command {:?} failed, {:?}", &abi_cmd, &output).into());
return Err(format!("command {abi_cmd:?} failed, {output:?}").into());
}
Ok(String::from_utf8(output.stdout)?)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 952ff416b599)
Generated by gir (https://github.com/gtk-rs/gir @ e79806af2905)
from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 15396abcca88)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ad1d9ed0a03e)

View file

@ -12,7 +12,7 @@ fn main() {} // prevent linking libraries to avoid documentation failure
#[cfg(not(feature = "dox"))]
fn main() {
if let Err(s) = system_deps::Config::new().probe() {
println!("cargo:warning={}", s);
println!("cargo:warning={s}");
process::exit(1);
}
}

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 952ff416b599)
Generated by gir (https://github.com/gtk-rs/gir @ e79806af2905)
from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 15396abcca88)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ad1d9ed0a03e)

View file

@ -31,7 +31,7 @@ pub struct GstGLDisplayWaylandClass {
impl ::std::fmt::Debug for GstGLDisplayWaylandClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLDisplayWaylandClass @ {:p}", self))
f.debug_struct(&format!("GstGLDisplayWaylandClass @ {self:p}"))
.field("object_class", &self.object_class)
.field("_padding", &self._padding)
.finish()
@ -54,7 +54,7 @@ pub struct GstGLDisplayWayland {
impl ::std::fmt::Debug for GstGLDisplayWayland {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLDisplayWayland @ {:p}", self))
f.debug_struct(&format!("GstGLDisplayWayland @ {self:p}"))
.field("parent", &self.parent)
.field("display", &self.display)
.field("registry", &self.registry)

View file

@ -41,7 +41,7 @@ impl Compiler {
cmd.arg(out);
let status = cmd.spawn()?.wait()?;
if !status.success() {
return Err(format!("compilation command {:?} failed, {}", &cmd, status).into());
return Err(format!("compilation command {cmd:?} failed, {status}").into());
}
Ok(())
}
@ -57,7 +57,7 @@ fn get_var(name: &str, default: &str) -> Result<Vec<String>, Box<dyn Error>> {
match env::var(name) {
Ok(value) => Ok(shell_words::split(&value)?),
Err(env::VarError::NotPresent) => Ok(shell_words::split(default)?),
Err(err) => Err(format!("{} {}", name, err).into()),
Err(err) => Err(format!("{name} {err}").into()),
}
}
@ -71,7 +71,7 @@ fn pkg_config_cflags(packages: &[&str]) -> Result<Vec<String>, Box<dyn Error>> {
cmd.args(packages);
let out = cmd.output()?;
if !out.status.success() {
return Err(format!("command {:?} returned {}", &cmd, out.status).into());
return Err(format!("command {cmd:?} returned {}", out.status).into());
}
let stdout = str::from_utf8(&out.stdout)?;
Ok(shell_words::split(stdout.trim())?)
@ -127,15 +127,14 @@ fn cross_validate_constants_with_c() {
{
if rust_name != c_name {
results.record_failed();
eprintln!("Name mismatch:\nRust: {:?}\nC: {:?}", rust_name, c_name,);
eprintln!("Name mismatch:\nRust: {rust_name:?}\nC: {c_name:?}");
continue;
}
if rust_value != c_value {
results.record_failed();
eprintln!(
"Constant value mismatch for {}\nRust: {:?}\nC: {:?}",
rust_name, rust_value, &c_value
"Constant value mismatch for {rust_name}\nRust: {rust_value:?}\nC: {c_value:?}",
);
continue;
}
@ -165,16 +164,13 @@ fn cross_validate_layout_with_c() {
{
if rust_name != c_name {
results.record_failed();
eprintln!("Name mismatch:\nRust: {:?}\nC: {:?}", rust_name, c_name,);
eprintln!("Name mismatch:\nRust: {rust_name:?}\nC: {c_name:?}");
continue;
}
if rust_layout != c_layout {
results.record_failed();
eprintln!(
"Layout mismatch for {}\nRust: {:?}\nC: {:?}",
rust_name, rust_layout, &c_layout
);
eprintln!("Layout mismatch for {rust_name}\nRust: {rust_layout:?}\nC: {c_layout:?}",);
continue;
}
@ -195,7 +191,7 @@ fn get_c_output(name: &str) -> Result<String, Box<dyn Error>> {
let mut abi_cmd = Command::new(exe);
let output = abi_cmd.output()?;
if !output.status.success() {
return Err(format!("command {:?} failed, {:?}", &abi_cmd, &output).into());
return Err(format!("command {abi_cmd:?} failed, {output:?}").into());
}
Ok(String::from_utf8(output.stdout)?)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 952ff416b599)
Generated by gir (https://github.com/gtk-rs/gir @ e79806af2905)
from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 15396abcca88)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ad1d9ed0a03e)

View file

@ -12,7 +12,7 @@ fn main() {} // prevent linking libraries to avoid documentation failure
#[cfg(not(feature = "dox"))]
fn main() {
if let Err(s) = system_deps::Config::new().probe() {
println!("cargo:warning={}", s);
println!("cargo:warning={s}");
process::exit(1);
}
}

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 952ff416b599)
Generated by gir (https://github.com/gtk-rs/gir @ e79806af2905)
from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 15396abcca88)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ad1d9ed0a03e)

View file

@ -31,7 +31,7 @@ pub struct GstGLDisplayX11Class {
impl ::std::fmt::Debug for GstGLDisplayX11Class {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLDisplayX11Class @ {:p}", self))
f.debug_struct(&format!("GstGLDisplayX11Class @ {self:p}"))
.field("object_class", &self.object_class)
.field("_padding", &self._padding)
.finish()
@ -52,7 +52,7 @@ pub struct GstGLDisplayX11 {
impl ::std::fmt::Debug for GstGLDisplayX11 {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLDisplayX11 @ {:p}", self))
f.debug_struct(&format!("GstGLDisplayX11 @ {self:p}"))
.finish()
}
}

View file

@ -41,7 +41,7 @@ impl Compiler {
cmd.arg(out);
let status = cmd.spawn()?.wait()?;
if !status.success() {
return Err(format!("compilation command {:?} failed, {}", &cmd, status).into());
return Err(format!("compilation command {cmd:?} failed, {status}").into());
}
Ok(())
}
@ -57,7 +57,7 @@ fn get_var(name: &str, default: &str) -> Result<Vec<String>, Box<dyn Error>> {
match env::var(name) {
Ok(value) => Ok(shell_words::split(&value)?),
Err(env::VarError::NotPresent) => Ok(shell_words::split(default)?),
Err(err) => Err(format!("{} {}", name, err).into()),
Err(err) => Err(format!("{name} {err}").into()),
}
}
@ -71,7 +71,7 @@ fn pkg_config_cflags(packages: &[&str]) -> Result<Vec<String>, Box<dyn Error>> {
cmd.args(packages);
let out = cmd.output()?;
if !out.status.success() {
return Err(format!("command {:?} returned {}", &cmd, out.status).into());
return Err(format!("command {cmd:?} returned {}", out.status).into());
}
let stdout = str::from_utf8(&out.stdout)?;
Ok(shell_words::split(stdout.trim())?)
@ -127,15 +127,14 @@ fn cross_validate_constants_with_c() {
{
if rust_name != c_name {
results.record_failed();
eprintln!("Name mismatch:\nRust: {:?}\nC: {:?}", rust_name, c_name,);
eprintln!("Name mismatch:\nRust: {rust_name:?}\nC: {c_name:?}");
continue;
}
if rust_value != c_value {
results.record_failed();
eprintln!(
"Constant value mismatch for {}\nRust: {:?}\nC: {:?}",
rust_name, rust_value, &c_value
"Constant value mismatch for {rust_name}\nRust: {rust_value:?}\nC: {c_value:?}",
);
continue;
}
@ -165,16 +164,13 @@ fn cross_validate_layout_with_c() {
{
if rust_name != c_name {
results.record_failed();
eprintln!("Name mismatch:\nRust: {:?}\nC: {:?}", rust_name, c_name,);
eprintln!("Name mismatch:\nRust: {rust_name:?}\nC: {c_name:?}");
continue;
}
if rust_layout != c_layout {
results.record_failed();
eprintln!(
"Layout mismatch for {}\nRust: {:?}\nC: {:?}",
rust_name, rust_layout, &c_layout
);
eprintln!("Layout mismatch for {rust_name}\nRust: {rust_layout:?}\nC: {c_layout:?}",);
continue;
}
@ -195,7 +191,7 @@ fn get_c_output(name: &str) -> Result<String, Box<dyn Error>> {
let mut abi_cmd = Command::new(exe);
let output = abi_cmd.output()?;
if !output.status.success() {
return Err(format!("command {:?} failed, {:?}", &abi_cmd, &output).into());
return Err(format!("command {abi_cmd:?} failed, {output:?}").into());
}
Ok(String::from_utf8(output.stdout)?)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 952ff416b599)
Generated by gir (https://github.com/gtk-rs/gir @ e79806af2905)
from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 15396abcca88)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ad1d9ed0a03e)

View file

@ -12,7 +12,7 @@ fn main() {} // prevent linking libraries to avoid documentation failure
#[cfg(not(feature = "dox"))]
fn main() {
if let Err(s) = system_deps::Config::new().probe() {
println!("cargo:warning={}", s);
println!("cargo:warning={s}");
process::exit(1);
}
}

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 952ff416b599)
Generated by gir (https://github.com/gtk-rs/gir @ e79806af2905)
from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 15396abcca88)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ad1d9ed0a03e)

View file

@ -693,7 +693,7 @@ pub struct GstMpegtsAtscEIT {
impl ::std::fmt::Debug for GstMpegtsAtscEIT {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsAtscEIT @ {:p}", self))
f.debug_struct(&format!("GstMpegtsAtscEIT @ {self:p}"))
.field("source_id", &self.source_id)
.field("protocol_version", &self.protocol_version)
.field("events", &self.events)
@ -714,7 +714,7 @@ pub struct GstMpegtsAtscEITEvent {
impl ::std::fmt::Debug for GstMpegtsAtscEITEvent {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsAtscEITEvent @ {:p}", self))
f.debug_struct(&format!("GstMpegtsAtscEITEvent @ {self:p}"))
.field("event_id", &self.event_id)
.field("start_time", &self.start_time)
.field("etm_location", &self.etm_location)
@ -736,7 +736,7 @@ pub struct GstMpegtsAtscETT {
impl ::std::fmt::Debug for GstMpegtsAtscETT {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsAtscETT @ {:p}", self))
f.debug_struct(&format!("GstMpegtsAtscETT @ {self:p}"))
.field("ett_table_id_extension", &self.ett_table_id_extension)
.field("protocol_version", &self.protocol_version)
.field("etm_id", &self.etm_id)
@ -756,7 +756,7 @@ pub struct GstMpegtsAtscMGT {
impl ::std::fmt::Debug for GstMpegtsAtscMGT {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsAtscMGT @ {:p}", self))
f.debug_struct(&format!("GstMpegtsAtscMGT @ {self:p}"))
.field("protocol_version", &self.protocol_version)
.field("tables_defined", &self.tables_defined)
.field("tables", &self.tables)
@ -777,7 +777,7 @@ pub struct GstMpegtsAtscMGTTable {
impl ::std::fmt::Debug for GstMpegtsAtscMGTTable {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsAtscMGTTable @ {:p}", self))
f.debug_struct(&format!("GstMpegtsAtscMGTTable @ {self:p}"))
.field("table_type", &self.table_type)
.field("pid", &self.pid)
.field("version_number", &self.version_number)
@ -796,7 +796,7 @@ pub struct GstMpegtsAtscMultString {
impl ::std::fmt::Debug for GstMpegtsAtscMultString {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsAtscMultString @ {:p}", self))
f.debug_struct(&format!("GstMpegtsAtscMultString @ {self:p}"))
.field("iso_639_langcode", &self.iso_639_langcode)
.field("segments", &self.segments)
.finish()
@ -815,7 +815,7 @@ pub struct GstMpegtsAtscRRT {
impl ::std::fmt::Debug for GstMpegtsAtscRRT {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsAtscRRT @ {:p}", self))
f.debug_struct(&format!("GstMpegtsAtscRRT @ {self:p}"))
.field("protocol_version", &self.protocol_version)
.field("names", &self.names)
.field("dimensions_defined", &self.dimensions_defined)
@ -836,7 +836,7 @@ pub struct GstMpegtsAtscRRTDimension {
impl ::std::fmt::Debug for GstMpegtsAtscRRTDimension {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsAtscRRTDimension @ {:p}", self))
f.debug_struct(&format!("GstMpegtsAtscRRTDimension @ {self:p}"))
.field("names", &self.names)
.field("graduated_scale", &self.graduated_scale)
.field("values_defined", &self.values_defined)
@ -854,7 +854,7 @@ pub struct GstMpegtsAtscRRTDimensionValue {
impl ::std::fmt::Debug for GstMpegtsAtscRRTDimensionValue {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsAtscRRTDimensionValue @ {:p}", self))
f.debug_struct(&format!("GstMpegtsAtscRRTDimensionValue @ {self:p}"))
.field("abbrev_ratings", &self.abbrev_ratings)
.field("ratings", &self.ratings)
.finish()
@ -876,7 +876,7 @@ pub struct GstMpegtsAtscSTT {
impl ::std::fmt::Debug for GstMpegtsAtscSTT {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsAtscSTT @ {:p}", self))
f.debug_struct(&format!("GstMpegtsAtscSTT @ {self:p}"))
.field("protocol_version", &self.protocol_version)
.field("system_time", &self.system_time)
.field("gps_utc_offset", &self.gps_utc_offset)
@ -901,7 +901,7 @@ pub struct GstMpegtsAtscStringSegment {
impl ::std::fmt::Debug for GstMpegtsAtscStringSegment {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsAtscStringSegment @ {:p}", self))
f.debug_struct(&format!("GstMpegtsAtscStringSegment @ {self:p}"))
.field("compression_type", &self.compression_type)
.field("mode", &self.mode)
.field("compressed_data_size", &self.compressed_data_size)
@ -922,7 +922,7 @@ pub struct GstMpegtsAtscVCT {
impl ::std::fmt::Debug for GstMpegtsAtscVCT {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsAtscVCT @ {:p}", self))
f.debug_struct(&format!("GstMpegtsAtscVCT @ {self:p}"))
.field("transport_stream_id", &self.transport_stream_id)
.field("protocol_version", &self.protocol_version)
.field("sources", &self.sources)
@ -954,7 +954,7 @@ pub struct GstMpegtsAtscVCTSource {
impl ::std::fmt::Debug for GstMpegtsAtscVCTSource {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsAtscVCTSource @ {:p}", self))
f.debug_struct(&format!("GstMpegtsAtscVCTSource @ {self:p}"))
.field("short_name", &self.short_name)
.field("major_channel_number", &self.major_channel_number)
.field("minor_channel_number", &self.minor_channel_number)
@ -994,26 +994,23 @@ pub struct GstMpegtsAudioPreselectionDescriptor {
impl ::std::fmt::Debug for GstMpegtsAudioPreselectionDescriptor {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!(
"GstMpegtsAudioPreselectionDescriptor @ {:p}",
self
))
.field("preselection_id", &self.preselection_id)
.field(
"audio_rendering_indication",
&self.audio_rendering_indication,
)
.field("audio_description", &self.audio_description)
.field("spoken_subtitles", &self.spoken_subtitles)
.field("dialogue_enhancement", &self.dialogue_enhancement)
.field("interactivity_enabled", &self.interactivity_enabled)
.field("language_code_present", &self.language_code_present)
.field("text_label_present", &self.text_label_present)
.field("multi_stream_info_present", &self.multi_stream_info_present)
.field("future_extension", &self.future_extension)
.field("language_code", &self.language_code)
.field("message_id", &self.message_id)
.finish()
f.debug_struct(&format!("GstMpegtsAudioPreselectionDescriptor @ {self:p}"))
.field("preselection_id", &self.preselection_id)
.field(
"audio_rendering_indication",
&self.audio_rendering_indication,
)
.field("audio_description", &self.audio_description)
.field("spoken_subtitles", &self.spoken_subtitles)
.field("dialogue_enhancement", &self.dialogue_enhancement)
.field("interactivity_enabled", &self.interactivity_enabled)
.field("language_code_present", &self.language_code_present)
.field("text_label_present", &self.text_label_present)
.field("multi_stream_info_present", &self.multi_stream_info_present)
.field("future_extension", &self.future_extension)
.field("language_code", &self.language_code)
.field("message_id", &self.message_id)
.finish()
}
}
@ -1026,7 +1023,7 @@ pub struct GstMpegtsBAT {
impl ::std::fmt::Debug for GstMpegtsBAT {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsBAT @ {:p}", self))
f.debug_struct(&format!("GstMpegtsBAT @ {self:p}"))
.field("descriptors", &self.descriptors)
.field("streams", &self.streams)
.finish()
@ -1043,7 +1040,7 @@ pub struct GstMpegtsBATStream {
impl ::std::fmt::Debug for GstMpegtsBATStream {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsBATStream @ {:p}", self))
f.debug_struct(&format!("GstMpegtsBATStream @ {self:p}"))
.field("transport_stream_id", &self.transport_stream_id)
.field("original_network_id", &self.original_network_id)
.field("descriptors", &self.descriptors)
@ -1064,8 +1061,7 @@ pub struct GstMpegtsCableDeliverySystemDescriptor {
impl ::std::fmt::Debug for GstMpegtsCableDeliverySystemDescriptor {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!(
"GstMpegtsCableDeliverySystemDescriptor @ {:p}",
self
"GstMpegtsCableDeliverySystemDescriptor @ {self:p}"
))
.field("frequency", &self.frequency)
.field("outer_fec", &self.outer_fec)
@ -1088,7 +1084,7 @@ pub struct GstMpegtsComponentDescriptor {
impl ::std::fmt::Debug for GstMpegtsComponentDescriptor {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsComponentDescriptor @ {:p}", self))
f.debug_struct(&format!("GstMpegtsComponentDescriptor @ {self:p}"))
.field("stream_content", &self.stream_content)
.field("component_type", &self.component_type)
.field("component_tag", &self.component_tag)
@ -1108,7 +1104,7 @@ pub struct GstMpegtsContent {
impl ::std::fmt::Debug for GstMpegtsContent {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsContent @ {:p}", self))
f.debug_struct(&format!("GstMpegtsContent @ {self:p}"))
.field("content_nibble_1", &self.content_nibble_1)
.field("content_nibble_2", &self.content_nibble_2)
.field("user_byte", &self.user_byte)
@ -1130,7 +1126,7 @@ pub struct GstMpegtsDVBLinkageDescriptor {
impl ::std::fmt::Debug for GstMpegtsDVBLinkageDescriptor {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsDVBLinkageDescriptor @ {:p}", self))
f.debug_struct(&format!("GstMpegtsDVBLinkageDescriptor @ {self:p}"))
.field("transport_stream_id", &self.transport_stream_id)
.field("original_network_id", &self.original_network_id)
.field("service_id", &self.service_id)
@ -1151,7 +1147,7 @@ pub struct GstMpegtsDVBLinkageEvent {
impl ::std::fmt::Debug for GstMpegtsDVBLinkageEvent {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsDVBLinkageEvent @ {:p}", self))
f.debug_struct(&format!("GstMpegtsDVBLinkageEvent @ {self:p}"))
.field("target_event_id", &self.target_event_id)
.field("target_listed", &self.target_listed)
.field("event_simulcast", &self.event_simulcast)
@ -1177,7 +1173,7 @@ pub struct GstMpegtsDVBLinkageExtendedEvent {
impl ::std::fmt::Debug for GstMpegtsDVBLinkageExtendedEvent {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsDVBLinkageExtendedEvent @ {:p}", self))
f.debug_struct(&format!("GstMpegtsDVBLinkageExtendedEvent @ {self:p}"))
.field("target_event_id", &self.target_event_id)
.field("target_listed", &self.target_listed)
.field("event_simulcast", &self.event_simulcast)
@ -1210,7 +1206,7 @@ pub struct GstMpegtsDVBLinkageMobileHandOver {
impl ::std::fmt::Debug for GstMpegtsDVBLinkageMobileHandOver {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsDVBLinkageMobileHandOver @ {:p}", self))
f.debug_struct(&format!("GstMpegtsDVBLinkageMobileHandOver @ {self:p}"))
.field("hand_over_type", &self.hand_over_type)
.field("origin_type", &self.origin_type)
.field("network_id", &self.network_id)
@ -1228,7 +1224,7 @@ pub struct GstMpegtsDVBParentalRatingItem {
impl ::std::fmt::Debug for GstMpegtsDVBParentalRatingItem {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsDVBParentalRatingItem @ {:p}", self))
f.debug_struct(&format!("GstMpegtsDVBParentalRatingItem @ {self:p}"))
.field("country_code", &self.country_code)
.field("rating", &self.rating)
.finish()
@ -1244,7 +1240,7 @@ pub struct GstMpegtsDVBServiceListItem {
impl ::std::fmt::Debug for GstMpegtsDVBServiceListItem {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsDVBServiceListItem @ {:p}", self))
f.debug_struct(&format!("GstMpegtsDVBServiceListItem @ {self:p}"))
.field("service_id", &self.service_id)
.field("type_", &self.type_)
.finish()
@ -1264,7 +1260,7 @@ pub struct GstMpegtsDataBroadcastDescriptor {
impl ::std::fmt::Debug for GstMpegtsDataBroadcastDescriptor {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsDataBroadcastDescriptor @ {:p}", self))
f.debug_struct(&format!("GstMpegtsDataBroadcastDescriptor @ {self:p}"))
.field("data_broadcast_id", &self.data_broadcast_id)
.field("component_tag", &self.component_tag)
.field("length", &self.length)
@ -1287,7 +1283,7 @@ pub struct GstMpegtsDescriptor {
impl ::std::fmt::Debug for GstMpegtsDescriptor {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsDescriptor @ {:p}", self))
f.debug_struct(&format!("GstMpegtsDescriptor @ {self:p}"))
.field("tag", &self.tag)
.field("tag_extension", &self.tag_extension)
.field("length", &self.length)
@ -1306,8 +1302,7 @@ pub struct GstMpegtsDvbMultilingualBouquetNameItem {
impl ::std::fmt::Debug for GstMpegtsDvbMultilingualBouquetNameItem {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!(
"GstMpegtsDvbMultilingualBouquetNameItem @ {:p}",
self
"GstMpegtsDvbMultilingualBouquetNameItem @ {self:p}"
))
.field("language_code", &self.language_code)
.field("bouquet_name", &self.bouquet_name)
@ -1324,13 +1319,10 @@ pub struct GstMpegtsDvbMultilingualComponentItem {
impl ::std::fmt::Debug for GstMpegtsDvbMultilingualComponentItem {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!(
"GstMpegtsDvbMultilingualComponentItem @ {:p}",
self
))
.field("language_code", &self.language_code)
.field("description", &self.description)
.finish()
f.debug_struct(&format!("GstMpegtsDvbMultilingualComponentItem @ {self:p}"))
.field("language_code", &self.language_code)
.field("description", &self.description)
.finish()
}
}
@ -1344,8 +1336,7 @@ pub struct GstMpegtsDvbMultilingualNetworkNameItem {
impl ::std::fmt::Debug for GstMpegtsDvbMultilingualNetworkNameItem {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!(
"GstMpegtsDvbMultilingualNetworkNameItem @ {:p}",
self
"GstMpegtsDvbMultilingualNetworkNameItem @ {self:p}"
))
.field("language_code", &self.language_code)
.field("network_name", &self.network_name)
@ -1364,8 +1355,7 @@ pub struct GstMpegtsDvbMultilingualServiceNameItem {
impl ::std::fmt::Debug for GstMpegtsDvbMultilingualServiceNameItem {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!(
"GstMpegtsDvbMultilingualServiceNameItem @ {:p}",
self
"GstMpegtsDvbMultilingualServiceNameItem @ {self:p}"
))
.field("language_code", &self.language_code)
.field("provider_name", &self.provider_name)
@ -1388,7 +1378,7 @@ pub struct GstMpegtsEIT {
impl ::std::fmt::Debug for GstMpegtsEIT {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsEIT @ {:p}", self))
f.debug_struct(&format!("GstMpegtsEIT @ {self:p}"))
.field("transport_stream_id", &self.transport_stream_id)
.field("original_network_id", &self.original_network_id)
.field(
@ -1416,7 +1406,7 @@ pub struct GstMpegtsEITEvent {
impl ::std::fmt::Debug for GstMpegtsEITEvent {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsEITEvent @ {:p}", self))
f.debug_struct(&format!("GstMpegtsEITEvent @ {self:p}"))
.field("event_id", &self.event_id)
.field("start_time", &self.start_time)
.field("duration", &self.duration)
@ -1439,7 +1429,7 @@ pub struct GstMpegtsExtendedEventDescriptor {
impl ::std::fmt::Debug for GstMpegtsExtendedEventDescriptor {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsExtendedEventDescriptor @ {:p}", self))
f.debug_struct(&format!("GstMpegtsExtendedEventDescriptor @ {self:p}"))
.field("descriptor_number", &self.descriptor_number)
.field("last_descriptor_number", &self.last_descriptor_number)
.field("language_code", &self.language_code)
@ -1458,7 +1448,7 @@ pub struct GstMpegtsExtendedEventItem {
impl ::std::fmt::Debug for GstMpegtsExtendedEventItem {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsExtendedEventItem @ {:p}", self))
f.debug_struct(&format!("GstMpegtsExtendedEventItem @ {self:p}"))
.field("item_description", &self.item_description)
.field("item", &self.item)
.finish()
@ -1475,7 +1465,7 @@ pub struct GstMpegtsISO639LanguageDescriptor {
impl ::std::fmt::Debug for GstMpegtsISO639LanguageDescriptor {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsISO639LanguageDescriptor @ {:p}", self))
f.debug_struct(&format!("GstMpegtsISO639LanguageDescriptor @ {self:p}"))
.field("nb_language", &self.nb_language)
.finish()
}
@ -1491,7 +1481,7 @@ pub struct GstMpegtsLogicalChannel {
impl ::std::fmt::Debug for GstMpegtsLogicalChannel {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsLogicalChannel @ {:p}", self))
f.debug_struct(&format!("GstMpegtsLogicalChannel @ {self:p}"))
.field("service_id", &self.service_id)
.field("visible_service", &self.visible_service)
.field("logical_channel_number", &self.logical_channel_number)
@ -1508,7 +1498,7 @@ pub struct GstMpegtsLogicalChannelDescriptor {
impl ::std::fmt::Debug for GstMpegtsLogicalChannelDescriptor {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsLogicalChannelDescriptor @ {:p}", self))
f.debug_struct(&format!("GstMpegtsLogicalChannelDescriptor @ {self:p}"))
.field("nb_channels", &self.nb_channels)
.finish()
}
@ -1525,7 +1515,7 @@ pub struct GstMpegtsNIT {
impl ::std::fmt::Debug for GstMpegtsNIT {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsNIT @ {:p}", self))
f.debug_struct(&format!("GstMpegtsNIT @ {self:p}"))
.field("actual_network", &self.actual_network)
.field("network_id", &self.network_id)
.field("descriptors", &self.descriptors)
@ -1544,7 +1534,7 @@ pub struct GstMpegtsNITStream {
impl ::std::fmt::Debug for GstMpegtsNITStream {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsNITStream @ {:p}", self))
f.debug_struct(&format!("GstMpegtsNITStream @ {self:p}"))
.field("transport_stream_id", &self.transport_stream_id)
.field("original_network_id", &self.original_network_id)
.field("descriptors", &self.descriptors)
@ -1563,7 +1553,7 @@ pub struct GstMpegtsPMT {
impl ::std::fmt::Debug for GstMpegtsPMT {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsPMT @ {:p}", self))
f.debug_struct(&format!("GstMpegtsPMT @ {self:p}"))
.field("pcr_pid", &self.pcr_pid)
.field("program_number", &self.program_number)
.field("descriptors", &self.descriptors)
@ -1582,7 +1572,7 @@ pub struct GstMpegtsPMTStream {
impl ::std::fmt::Debug for GstMpegtsPMTStream {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsPMTStream @ {:p}", self))
f.debug_struct(&format!("GstMpegtsPMTStream @ {self:p}"))
.field("stream_type", &self.stream_type)
.field("pid", &self.pid)
.field("descriptors", &self.descriptors)
@ -1599,7 +1589,7 @@ pub struct GstMpegtsPatProgram {
impl ::std::fmt::Debug for GstMpegtsPatProgram {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsPatProgram @ {:p}", self))
f.debug_struct(&format!("GstMpegtsPatProgram @ {self:p}"))
.field("program_number", &self.program_number)
.field(
"network_or_program_map_PID",
@ -1629,7 +1619,7 @@ pub struct GstMpegtsSCTESIT {
impl ::std::fmt::Debug for GstMpegtsSCTESIT {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsSCTESIT @ {:p}", self))
f.debug_struct(&format!("GstMpegtsSCTESIT @ {self:p}"))
.field("encrypted_packet", &self.encrypted_packet)
.field("encryption_algorithm", &self.encryption_algorithm)
.field("pts_adjustment", &self.pts_adjustment)
@ -1658,7 +1648,7 @@ pub struct GstMpegtsSCTESpliceComponent {
impl ::std::fmt::Debug for GstMpegtsSCTESpliceComponent {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsSCTESpliceComponent @ {:p}", self))
f.debug_struct(&format!("GstMpegtsSCTESpliceComponent @ {self:p}"))
.field("tag", &self.tag)
.field("splice_time_specified", &self.splice_time_specified)
.field("splice_time", &self.splice_time)
@ -1690,7 +1680,7 @@ pub struct GstMpegtsSCTESpliceEvent {
impl ::std::fmt::Debug for GstMpegtsSCTESpliceEvent {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsSCTESpliceEvent @ {:p}", self))
f.debug_struct(&format!("GstMpegtsSCTESpliceEvent @ {self:p}"))
.field("insert_event", &self.insert_event)
.field("splice_event_id", &self.splice_event_id)
.field(
@ -1731,7 +1721,7 @@ pub struct GstMpegtsSDT {
impl ::std::fmt::Debug for GstMpegtsSDT {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsSDT @ {:p}", self))
f.debug_struct(&format!("GstMpegtsSDT @ {self:p}"))
.field("original_network_id", &self.original_network_id)
.field("actual_ts", &self.actual_ts)
.field("transport_stream_id", &self.transport_stream_id)
@ -1753,7 +1743,7 @@ pub struct GstMpegtsSDTService {
impl ::std::fmt::Debug for GstMpegtsSDTService {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsSDTService @ {:p}", self))
f.debug_struct(&format!("GstMpegtsSDTService @ {self:p}"))
.field("service_id", &self.service_id)
.field("EIT_schedule_flag", &self.EIT_schedule_flag)
.field(
@ -1776,7 +1766,7 @@ pub struct GstMpegtsSIT {
impl ::std::fmt::Debug for GstMpegtsSIT {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsSIT @ {:p}", self))
f.debug_struct(&format!("GstMpegtsSIT @ {self:p}"))
.field("descriptors", &self.descriptors)
.field("services", &self.services)
.finish()
@ -1793,7 +1783,7 @@ pub struct GstMpegtsSITService {
impl ::std::fmt::Debug for GstMpegtsSITService {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsSITService @ {:p}", self))
f.debug_struct(&format!("GstMpegtsSITService @ {self:p}"))
.field("service_id", &self.service_id)
.field("running_status", &self.running_status)
.field("descriptors", &self.descriptors)
@ -1818,8 +1808,7 @@ pub struct GstMpegtsSatelliteDeliverySystemDescriptor {
impl ::std::fmt::Debug for GstMpegtsSatelliteDeliverySystemDescriptor {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!(
"GstMpegtsSatelliteDeliverySystemDescriptor @ {:p}",
self
"GstMpegtsSatelliteDeliverySystemDescriptor @ {self:p}"
))
.field("frequency", &self.frequency)
.field("orbital_position", &self.orbital_position)
@ -1859,7 +1848,7 @@ pub struct GstMpegtsSection {
impl ::std::fmt::Debug for GstMpegtsSection {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsSection @ {:p}", self))
f.debug_struct(&format!("GstMpegtsSection @ {self:p}"))
.field("section_type", &self.section_type)
.field("pid", &self.pid)
.field("table_id", &self.table_id)
@ -1883,7 +1872,7 @@ pub struct GstMpegtsT2DeliverySystemCell {
impl ::std::fmt::Debug for GstMpegtsT2DeliverySystemCell {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsT2DeliverySystemCell @ {:p}", self))
f.debug_struct(&format!("GstMpegtsT2DeliverySystemCell @ {self:p}"))
.field("cell_id", &self.cell_id)
.field("centre_frequencies", &self.centre_frequencies)
.field("sub_cells", &self.sub_cells)
@ -1901,8 +1890,7 @@ pub struct GstMpegtsT2DeliverySystemCellExtension {
impl ::std::fmt::Debug for GstMpegtsT2DeliverySystemCellExtension {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!(
"GstMpegtsT2DeliverySystemCellExtension @ {:p}",
self
"GstMpegtsT2DeliverySystemCellExtension @ {self:p}"
))
.field("cell_id_extension", &self.cell_id_extension)
.field("transposer_frequency", &self.transposer_frequency)
@ -1926,7 +1914,7 @@ pub struct GstMpegtsT2DeliverySystemDescriptor {
impl ::std::fmt::Debug for GstMpegtsT2DeliverySystemDescriptor {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsT2DeliverySystemDescriptor @ {:p}", self))
f.debug_struct(&format!("GstMpegtsT2DeliverySystemDescriptor @ {self:p}"))
.field("plp_id", &self.plp_id)
.field("t2_system_id", &self.t2_system_id)
.field("siso_miso", &self.siso_miso)
@ -1949,7 +1937,7 @@ pub struct GstMpegtsTOT {
impl ::std::fmt::Debug for GstMpegtsTOT {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsTOT @ {:p}", self))
f.debug_struct(&format!("GstMpegtsTOT @ {self:p}"))
.field("utc_time", &self.utc_time)
.field("descriptors", &self.descriptors)
.finish()
@ -1976,8 +1964,7 @@ pub struct GstMpegtsTerrestrialDeliverySystemDescriptor {
impl ::std::fmt::Debug for GstMpegtsTerrestrialDeliverySystemDescriptor {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!(
"GstMpegtsTerrestrialDeliverySystemDescriptor @ {:p}",
self
"GstMpegtsTerrestrialDeliverySystemDescriptor @ {self:p}"
))
.field("frequency", &self.frequency)
.field("bandwidth", &self.bandwidth)

View file

@ -41,7 +41,7 @@ impl Compiler {
cmd.arg(out);
let status = cmd.spawn()?.wait()?;
if !status.success() {
return Err(format!("compilation command {:?} failed, {}", &cmd, status).into());
return Err(format!("compilation command {cmd:?} failed, {status}").into());
}
Ok(())
}
@ -57,7 +57,7 @@ fn get_var(name: &str, default: &str) -> Result<Vec<String>, Box<dyn Error>> {
match env::var(name) {
Ok(value) => Ok(shell_words::split(&value)?),
Err(env::VarError::NotPresent) => Ok(shell_words::split(default)?),
Err(err) => Err(format!("{} {}", name, err).into()),
Err(err) => Err(format!("{name} {err}").into()),
}
}
@ -71,7 +71,7 @@ fn pkg_config_cflags(packages: &[&str]) -> Result<Vec<String>, Box<dyn Error>> {
cmd.args(packages);
let out = cmd.output()?;
if !out.status.success() {
return Err(format!("command {:?} returned {}", &cmd, out.status).into());
return Err(format!("command {cmd:?} returned {}", out.status).into());
}
let stdout = str::from_utf8(&out.stdout)?;
Ok(shell_words::split(stdout.trim())?)
@ -127,15 +127,14 @@ fn cross_validate_constants_with_c() {
{
if rust_name != c_name {
results.record_failed();
eprintln!("Name mismatch:\nRust: {:?}\nC: {:?}", rust_name, c_name,);
eprintln!("Name mismatch:\nRust: {rust_name:?}\nC: {c_name:?}");
continue;
}
if rust_value != c_value {
results.record_failed();
eprintln!(
"Constant value mismatch for {}\nRust: {:?}\nC: {:?}",
rust_name, rust_value, &c_value
"Constant value mismatch for {rust_name}\nRust: {rust_value:?}\nC: {c_value:?}",
);
continue;
}
@ -165,16 +164,13 @@ fn cross_validate_layout_with_c() {
{
if rust_name != c_name {
results.record_failed();
eprintln!("Name mismatch:\nRust: {:?}\nC: {:?}", rust_name, c_name,);
eprintln!("Name mismatch:\nRust: {rust_name:?}\nC: {c_name:?}");
continue;
}
if rust_layout != c_layout {
results.record_failed();
eprintln!(
"Layout mismatch for {}\nRust: {:?}\nC: {:?}",
rust_name, rust_layout, &c_layout
);
eprintln!("Layout mismatch for {rust_name}\nRust: {rust_layout:?}\nC: {c_layout:?}",);
continue;
}
@ -195,7 +191,7 @@ fn get_c_output(name: &str) -> Result<String, Box<dyn Error>> {
let mut abi_cmd = Command::new(exe);
let output = abi_cmd.output()?;
if !output.status.success() {
return Err(format!("command {:?} failed, {:?}", &abi_cmd, &output).into());
return Err(format!("command {abi_cmd:?} failed, {output:?}").into());
}
Ok(String::from_utf8(output.stdout)?)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 952ff416b599)
Generated by gir (https://github.com/gtk-rs/gir @ e79806af2905)
from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 15396abcca88)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ad1d9ed0a03e)

View file

@ -12,7 +12,7 @@ fn main() {} // prevent linking libraries to avoid documentation failure
#[cfg(not(feature = "dox"))]
fn main() {
if let Err(s) = system_deps::Config::new().probe() {
println!("cargo:warning={}", s);
println!("cargo:warning={s}");
process::exit(1);
}
}

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 952ff416b599)
Generated by gir (https://github.com/gtk-rs/gir @ e79806af2905)
from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 15396abcca88)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ad1d9ed0a03e)

View file

@ -47,7 +47,7 @@ pub struct GstNetAddressMeta {
impl ::std::fmt::Debug for GstNetAddressMeta {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstNetAddressMeta @ {:p}", self))
f.debug_struct(&format!("GstNetAddressMeta @ {self:p}"))
.field("meta", &self.meta)
.field("addr", &self.addr)
.finish()
@ -63,7 +63,7 @@ pub struct GstNetClientClockClass {
impl ::std::fmt::Debug for GstNetClientClockClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstNetClientClockClass @ {:p}", self))
f.debug_struct(&format!("GstNetClientClockClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.finish()
}
@ -86,7 +86,7 @@ pub struct GstNetControlMessageMeta {
impl ::std::fmt::Debug for GstNetControlMessageMeta {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstNetControlMessageMeta @ {:p}", self))
f.debug_struct(&format!("GstNetControlMessageMeta @ {self:p}"))
.field("meta", &self.meta)
.field("message", &self.message)
.finish()
@ -102,7 +102,7 @@ pub struct GstNetTimePacket {
impl ::std::fmt::Debug for GstNetTimePacket {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstNetTimePacket @ {:p}", self))
f.debug_struct(&format!("GstNetTimePacket @ {self:p}"))
.field("local_time", &self.local_time)
.field("remote_time", &self.remote_time)
.finish()
@ -118,7 +118,7 @@ pub struct GstNetTimeProviderClass {
impl ::std::fmt::Debug for GstNetTimeProviderClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstNetTimeProviderClass @ {:p}", self))
f.debug_struct(&format!("GstNetTimeProviderClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.field("_gst_reserved", &self._gst_reserved)
.finish()
@ -142,7 +142,7 @@ pub struct GstNtpClockClass {
impl ::std::fmt::Debug for GstNtpClockClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstNtpClockClass @ {:p}", self))
f.debug_struct(&format!("GstNtpClockClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.finish()
}
@ -157,7 +157,7 @@ pub struct GstPtpClockClass {
impl ::std::fmt::Debug for GstPtpClockClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstPtpClockClass @ {:p}", self))
f.debug_struct(&format!("GstPtpClockClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.finish()
}
@ -182,7 +182,7 @@ pub struct GstNetClientClock {
impl ::std::fmt::Debug for GstNetClientClock {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstNetClientClock @ {:p}", self))
f.debug_struct(&format!("GstNetClientClock @ {self:p}"))
.field("clock", &self.clock)
.finish()
}
@ -198,7 +198,7 @@ pub struct GstNetTimeProvider {
impl ::std::fmt::Debug for GstNetTimeProvider {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstNetTimeProvider @ {:p}", self))
f.debug_struct(&format!("GstNetTimeProvider @ {self:p}"))
.field("parent", &self.parent)
.finish()
}
@ -214,7 +214,7 @@ pub struct GstNtpClock {
impl ::std::fmt::Debug for GstNtpClock {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstNtpClock @ {:p}", self))
f.debug_struct(&format!("GstNtpClock @ {self:p}"))
.field("clock", &self.clock)
.finish()
}
@ -230,7 +230,7 @@ pub struct GstPtpClock {
impl ::std::fmt::Debug for GstPtpClock {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstPtpClock @ {:p}", self))
f.debug_struct(&format!("GstPtpClock @ {self:p}"))
.field("clock", &self.clock)
.finish()
}
@ -253,7 +253,7 @@ extern "C" {
// GstNetTimePacket
//=========================================================================
pub fn gst_net_time_packet_get_type() -> GType;
pub fn gst_net_time_packet_new(buffer: *const u8) -> *mut GstNetTimePacket;
pub fn gst_net_time_packet_new(buffer: *const [u8; 16]) -> *mut GstNetTimePacket;
pub fn gst_net_time_packet_copy(packet: *const GstNetTimePacket) -> *mut GstNetTimePacket;
pub fn gst_net_time_packet_free(packet: *mut GstNetTimePacket);
pub fn gst_net_time_packet_send(
@ -262,7 +262,7 @@ extern "C" {
dest_address: *mut gio::GSocketAddress,
error: *mut *mut glib::GError,
) -> gboolean;
pub fn gst_net_time_packet_serialize(packet: *const GstNetTimePacket) -> *mut u8;
pub fn gst_net_time_packet_serialize(packet: *const GstNetTimePacket) -> *mut [u8; 16];
pub fn gst_net_time_packet_receive(
socket: *mut gio::GSocket,
src_address: *mut *mut gio::GSocketAddress,

View file

@ -41,7 +41,7 @@ impl Compiler {
cmd.arg(out);
let status = cmd.spawn()?.wait()?;
if !status.success() {
return Err(format!("compilation command {:?} failed, {}", &cmd, status).into());
return Err(format!("compilation command {cmd:?} failed, {status}").into());
}
Ok(())
}
@ -57,7 +57,7 @@ fn get_var(name: &str, default: &str) -> Result<Vec<String>, Box<dyn Error>> {
match env::var(name) {
Ok(value) => Ok(shell_words::split(&value)?),
Err(env::VarError::NotPresent) => Ok(shell_words::split(default)?),
Err(err) => Err(format!("{} {}", name, err).into()),
Err(err) => Err(format!("{name} {err}").into()),
}
}
@ -71,7 +71,7 @@ fn pkg_config_cflags(packages: &[&str]) -> Result<Vec<String>, Box<dyn Error>> {
cmd.args(packages);
let out = cmd.output()?;
if !out.status.success() {
return Err(format!("command {:?} returned {}", &cmd, out.status).into());
return Err(format!("command {cmd:?} returned {}", out.status).into());
}
let stdout = str::from_utf8(&out.stdout)?;
Ok(shell_words::split(stdout.trim())?)
@ -127,15 +127,14 @@ fn cross_validate_constants_with_c() {
{
if rust_name != c_name {
results.record_failed();
eprintln!("Name mismatch:\nRust: {:?}\nC: {:?}", rust_name, c_name,);
eprintln!("Name mismatch:\nRust: {rust_name:?}\nC: {c_name:?}");
continue;
}
if rust_value != c_value {
results.record_failed();
eprintln!(
"Constant value mismatch for {}\nRust: {:?}\nC: {:?}",
rust_name, rust_value, &c_value
"Constant value mismatch for {rust_name}\nRust: {rust_value:?}\nC: {c_value:?}",
);
continue;
}
@ -165,16 +164,13 @@ fn cross_validate_layout_with_c() {
{
if rust_name != c_name {
results.record_failed();
eprintln!("Name mismatch:\nRust: {:?}\nC: {:?}", rust_name, c_name,);
eprintln!("Name mismatch:\nRust: {rust_name:?}\nC: {c_name:?}");
continue;
}
if rust_layout != c_layout {
results.record_failed();
eprintln!(
"Layout mismatch for {}\nRust: {:?}\nC: {:?}",
rust_name, rust_layout, &c_layout
);
eprintln!("Layout mismatch for {rust_name}\nRust: {rust_layout:?}\nC: {c_layout:?}",);
continue;
}
@ -195,7 +191,7 @@ fn get_c_output(name: &str) -> Result<String, Box<dyn Error>> {
let mut abi_cmd = Command::new(exe);
let output = abi_cmd.output()?;
if !output.status.success() {
return Err(format!("command {:?} failed, {:?}", &abi_cmd, &output).into());
return Err(format!("command {abi_cmd:?} failed, {output:?}").into());
}
Ok(String::from_utf8(output.stdout)?)

View file

@ -3,9 +3,13 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT
use crate::DiscovererAudioInfo;
use crate::DiscovererContainerInfo;
use crate::DiscovererResult;
use crate::DiscovererSerializeFlags;
use crate::DiscovererStreamInfo;
use crate::DiscovererSubtitleInfo;
use crate::DiscovererVideoInfo;
use glib::translate::*;
glib::wrapper! {
@ -26,7 +30,7 @@ impl DiscovererInfo {
#[doc(alias = "gst_discoverer_info_get_audio_streams")]
#[doc(alias = "get_audio_streams")]
pub fn audio_streams(&self) -> Vec<DiscovererStreamInfo> {
pub fn audio_streams(&self) -> Vec<DiscovererAudioInfo> {
unsafe {
FromGlibPtrContainer::from_glib_full(ffi::gst_discoverer_info_get_audio_streams(
self.to_glib_none().0,
@ -36,7 +40,7 @@ impl DiscovererInfo {
#[doc(alias = "gst_discoverer_info_get_container_streams")]
#[doc(alias = "get_container_streams")]
pub fn container_streams(&self) -> Vec<DiscovererStreamInfo> {
pub fn container_streams(&self) -> Vec<DiscovererContainerInfo> {
unsafe {
FromGlibPtrContainer::from_glib_full(ffi::gst_discoverer_info_get_container_streams(
self.to_glib_none().0,
@ -119,7 +123,7 @@ impl DiscovererInfo {
#[doc(alias = "gst_discoverer_info_get_subtitle_streams")]
#[doc(alias = "get_subtitle_streams")]
pub fn subtitle_streams(&self) -> Vec<DiscovererStreamInfo> {
pub fn subtitle_streams(&self) -> Vec<DiscovererSubtitleInfo> {
unsafe {
FromGlibPtrContainer::from_glib_full(ffi::gst_discoverer_info_get_subtitle_streams(
self.to_glib_none().0,
@ -148,7 +152,7 @@ impl DiscovererInfo {
#[doc(alias = "gst_discoverer_info_get_video_streams")]
#[doc(alias = "get_video_streams")]
pub fn video_streams(&self) -> Vec<DiscovererStreamInfo> {
pub fn video_streams(&self) -> Vec<DiscovererVideoInfo> {
unsafe {
FromGlibPtrContainer::from_glib_full(ffi::gst_discoverer_info_get_video_streams(
self.to_glib_none().0,

View file

@ -14,11 +14,11 @@ bitflags! {
#[doc(alias = "GstDiscovererSerializeFlags")]
pub struct DiscovererSerializeFlags: u32 {
#[doc(alias = "GST_DISCOVERER_SERIALIZE_CAPS")]
const CAPS = ffi::GST_DISCOVERER_SERIALIZE_CAPS as u32;
const CAPS = ffi::GST_DISCOVERER_SERIALIZE_CAPS as _;
#[doc(alias = "GST_DISCOVERER_SERIALIZE_TAGS")]
const TAGS = ffi::GST_DISCOVERER_SERIALIZE_TAGS as u32;
const TAGS = ffi::GST_DISCOVERER_SERIALIZE_TAGS as _;
#[doc(alias = "GST_DISCOVERER_SERIALIZE_MISC")]
const MISC = ffi::GST_DISCOVERER_SERIALIZE_MISC as u32;
const MISC = ffi::GST_DISCOVERER_SERIALIZE_MISC as _;
}
}
@ -78,23 +78,23 @@ bitflags! {
#[doc(alias = "GstPbUtilsCapsDescriptionFlags")]
pub struct PbUtilsCapsDescriptionFlags: u32 {
#[doc(alias = "GST_PBUTILS_CAPS_DESCRIPTION_FLAG_CONTAINER")]
const CONTAINER = ffi::GST_PBUTILS_CAPS_DESCRIPTION_FLAG_CONTAINER as u32;
const CONTAINER = ffi::GST_PBUTILS_CAPS_DESCRIPTION_FLAG_CONTAINER as _;
#[doc(alias = "GST_PBUTILS_CAPS_DESCRIPTION_FLAG_AUDIO")]
const AUDIO = ffi::GST_PBUTILS_CAPS_DESCRIPTION_FLAG_AUDIO as u32;
const AUDIO = ffi::GST_PBUTILS_CAPS_DESCRIPTION_FLAG_AUDIO as _;
#[doc(alias = "GST_PBUTILS_CAPS_DESCRIPTION_FLAG_VIDEO")]
const VIDEO = ffi::GST_PBUTILS_CAPS_DESCRIPTION_FLAG_VIDEO as u32;
const VIDEO = ffi::GST_PBUTILS_CAPS_DESCRIPTION_FLAG_VIDEO as _;
#[doc(alias = "GST_PBUTILS_CAPS_DESCRIPTION_FLAG_IMAGE")]
const IMAGE = ffi::GST_PBUTILS_CAPS_DESCRIPTION_FLAG_IMAGE as u32;
const IMAGE = ffi::GST_PBUTILS_CAPS_DESCRIPTION_FLAG_IMAGE as _;
#[doc(alias = "GST_PBUTILS_CAPS_DESCRIPTION_FLAG_SUBTITLE")]
const SUBTITLE = ffi::GST_PBUTILS_CAPS_DESCRIPTION_FLAG_SUBTITLE as u32;
const SUBTITLE = ffi::GST_PBUTILS_CAPS_DESCRIPTION_FLAG_SUBTITLE as _;
#[doc(alias = "GST_PBUTILS_CAPS_DESCRIPTION_FLAG_TAG")]
const TAG = ffi::GST_PBUTILS_CAPS_DESCRIPTION_FLAG_TAG as u32;
const TAG = ffi::GST_PBUTILS_CAPS_DESCRIPTION_FLAG_TAG as _;
#[doc(alias = "GST_PBUTILS_CAPS_DESCRIPTION_FLAG_GENERIC")]
const GENERIC = ffi::GST_PBUTILS_CAPS_DESCRIPTION_FLAG_GENERIC as u32;
const GENERIC = ffi::GST_PBUTILS_CAPS_DESCRIPTION_FLAG_GENERIC as _;
#[cfg(any(feature = "v1_22", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))]
#[doc(alias = "GST_PBUTILS_CAPS_DESCRIPTION_FLAG_METADATA")]
const METADATA = ffi::GST_PBUTILS_CAPS_DESCRIPTION_FLAG_METADATA as u32;
const METADATA = ffi::GST_PBUTILS_CAPS_DESCRIPTION_FLAG_METADATA as _;
}
}

View file

@ -13,7 +13,7 @@ use std::mem;
#[doc(alias = "gst_codec_utils_aac_get_channels")]
pub fn codec_utils_aac_get_channels(audio_config: &[u8]) -> u32 {
assert_initialized_main_thread!();
let len = audio_config.len() as u32;
let len = audio_config.len() as _;
unsafe { ffi::gst_codec_utils_aac_get_channels(audio_config.to_glib_none().0, len) }
}
@ -26,7 +26,7 @@ pub fn codec_utils_aac_get_index_from_sample_rate(rate: u32) -> i32 {
#[doc(alias = "gst_codec_utils_aac_get_level")]
pub fn codec_utils_aac_get_level(audio_config: &[u8]) -> Result<glib::GString, glib::BoolError> {
assert_initialized_main_thread!();
let len = audio_config.len() as u32;
let len = audio_config.len() as _;
unsafe {
Option::<_>::from_glib_none(ffi::gst_codec_utils_aac_get_level(
audio_config.to_glib_none().0,
@ -39,7 +39,7 @@ pub fn codec_utils_aac_get_level(audio_config: &[u8]) -> Result<glib::GString, g
#[doc(alias = "gst_codec_utils_aac_get_profile")]
pub fn codec_utils_aac_get_profile(audio_config: &[u8]) -> Result<glib::GString, glib::BoolError> {
assert_initialized_main_thread!();
let len = audio_config.len() as u32;
let len = audio_config.len() as _;
unsafe {
Option::<_>::from_glib_none(ffi::gst_codec_utils_aac_get_profile(
audio_config.to_glib_none().0,
@ -52,7 +52,7 @@ pub fn codec_utils_aac_get_profile(audio_config: &[u8]) -> Result<glib::GString,
#[doc(alias = "gst_codec_utils_aac_get_sample_rate")]
pub fn codec_utils_aac_get_sample_rate(audio_config: &[u8]) -> u32 {
assert_initialized_main_thread!();
let len = audio_config.len() as u32;
let len = audio_config.len() as _;
unsafe { ffi::gst_codec_utils_aac_get_sample_rate(audio_config.to_glib_none().0, len) }
}
@ -90,7 +90,7 @@ pub fn codec_utils_caps_get_mime_codec(caps: &gst::Caps) -> Result<glib::GString
#[doc(alias = "gst_codec_utils_h264_get_level")]
pub fn codec_utils_h264_get_level(sps: &[u8]) -> Result<glib::GString, glib::BoolError> {
assert_initialized_main_thread!();
let len = sps.len() as u32;
let len = sps.len() as _;
unsafe {
Option::<_>::from_glib_none(ffi::gst_codec_utils_h264_get_level(
sps.to_glib_none().0,
@ -109,7 +109,7 @@ pub fn codec_utils_h264_get_level_idc(level: &str) -> u8 {
#[doc(alias = "gst_codec_utils_h264_get_profile")]
pub fn codec_utils_h264_get_profile(sps: &[u8]) -> Result<glib::GString, glib::BoolError> {
assert_initialized_main_thread!();
let len = sps.len() as u32;
let len = sps.len() as _;
unsafe {
Option::<_>::from_glib_none(ffi::gst_codec_utils_h264_get_profile(
sps.to_glib_none().0,
@ -124,7 +124,7 @@ pub fn codec_utils_h265_get_level(
profile_tier_level: &[u8],
) -> Result<glib::GString, glib::BoolError> {
assert_initialized_main_thread!();
let len = profile_tier_level.len() as u32;
let len = profile_tier_level.len() as _;
unsafe {
Option::<_>::from_glib_none(ffi::gst_codec_utils_h265_get_level(
profile_tier_level.to_glib_none().0,
@ -145,7 +145,7 @@ pub fn codec_utils_h265_get_profile(
profile_tier_level: &[u8],
) -> Result<glib::GString, glib::BoolError> {
assert_initialized_main_thread!();
let len = profile_tier_level.len() as u32;
let len = profile_tier_level.len() as _;
unsafe {
Option::<_>::from_glib_none(ffi::gst_codec_utils_h265_get_profile(
profile_tier_level.to_glib_none().0,
@ -160,7 +160,7 @@ pub fn codec_utils_h265_get_tier(
profile_tier_level: &[u8],
) -> Result<glib::GString, glib::BoolError> {
assert_initialized_main_thread!();
let len = profile_tier_level.len() as u32;
let len = profile_tier_level.len() as _;
unsafe {
Option::<_>::from_glib_none(ffi::gst_codec_utils_h265_get_tier(
profile_tier_level.to_glib_none().0,
@ -175,7 +175,7 @@ pub fn codec_utils_mpeg4video_get_level(
vis_obj_seq: &[u8],
) -> Result<glib::GString, glib::BoolError> {
assert_initialized_main_thread!();
let len = vis_obj_seq.len() as u32;
let len = vis_obj_seq.len() as _;
unsafe {
Option::<_>::from_glib_none(ffi::gst_codec_utils_mpeg4video_get_level(
vis_obj_seq.to_glib_none().0,
@ -190,7 +190,7 @@ pub fn codec_utils_mpeg4video_get_profile(
vis_obj_seq: &[u8],
) -> Result<glib::GString, glib::BoolError> {
assert_initialized_main_thread!();
let len = vis_obj_seq.len() as u32;
let len = vis_obj_seq.len() as _;
unsafe {
Option::<_>::from_glib_none(ffi::gst_codec_utils_mpeg4video_get_profile(
vis_obj_seq.to_glib_none().0,

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 952ff416b599)
Generated by gir (https://github.com/gtk-rs/gir @ e79806af2905)
from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 15396abcca88)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ad1d9ed0a03e)

View file

@ -12,7 +12,7 @@ fn main() {} // prevent linking libraries to avoid documentation failure
#[cfg(not(feature = "dox"))]
fn main() {
if let Err(s) = system_deps::Config::new().probe() {
println!("cargo:warning={}", s);
println!("cargo:warning={s}");
process::exit(1);
}
}

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 952ff416b599)
Generated by gir (https://github.com/gtk-rs/gir @ e79806af2905)
from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 15396abcca88)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ad1d9ed0a03e)

View file

@ -124,7 +124,7 @@ pub struct GstAudioVisualizerClass {
impl ::std::fmt::Debug for GstAudioVisualizerClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAudioVisualizerClass @ {:p}", self))
f.debug_struct(&format!("GstAudioVisualizerClass @ {self:p}"))
.field("setup", &self.setup)
.field("render", &self.render)
.field("decide_allocation", &self.decide_allocation)
@ -155,7 +155,7 @@ pub struct GstDiscovererClass {
impl ::std::fmt::Debug for GstDiscovererClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstDiscovererClass @ {:p}", self))
f.debug_struct(&format!("GstDiscovererClass @ {self:p}"))
.field("parentclass", &self.parentclass)
.field("finished", &self.finished)
.field("starting", &self.starting)
@ -214,7 +214,7 @@ pub struct GstInstallPluginsContext {
impl ::std::fmt::Debug for GstInstallPluginsContext {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstInstallPluginsContext @ {:p}", self))
f.debug_struct(&format!("GstInstallPluginsContext @ {self:p}"))
.finish()
}
}
@ -232,7 +232,7 @@ pub struct GstAudioVisualizer {
impl ::std::fmt::Debug for GstAudioVisualizer {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAudioVisualizer @ {:p}", self))
f.debug_struct(&format!("GstAudioVisualizer @ {self:p}"))
.field("parent", &self.parent)
.field("req_spf", &self.req_spf)
.field("vinfo", &self.vinfo)
@ -251,7 +251,7 @@ pub struct GstDiscoverer {
impl ::std::fmt::Debug for GstDiscoverer {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstDiscoverer @ {:p}", self))
f.debug_struct(&format!("GstDiscoverer @ {self:p}"))
.field("parent", &self.parent)
.finish()
}
@ -265,7 +265,7 @@ pub struct GstDiscovererAudioInfo {
impl ::std::fmt::Debug for GstDiscovererAudioInfo {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstDiscovererAudioInfo @ {:p}", self))
f.debug_struct(&format!("GstDiscovererAudioInfo @ {self:p}"))
.finish()
}
}
@ -278,7 +278,7 @@ pub struct GstDiscovererContainerInfo {
impl ::std::fmt::Debug for GstDiscovererContainerInfo {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstDiscovererContainerInfo @ {:p}", self))
f.debug_struct(&format!("GstDiscovererContainerInfo @ {self:p}"))
.finish()
}
}
@ -291,7 +291,7 @@ pub struct GstDiscovererInfo {
impl ::std::fmt::Debug for GstDiscovererInfo {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstDiscovererInfo @ {:p}", self))
f.debug_struct(&format!("GstDiscovererInfo @ {self:p}"))
.finish()
}
}
@ -304,7 +304,7 @@ pub struct GstDiscovererStreamInfo {
impl ::std::fmt::Debug for GstDiscovererStreamInfo {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstDiscovererStreamInfo @ {:p}", self))
f.debug_struct(&format!("GstDiscovererStreamInfo @ {self:p}"))
.finish()
}
}
@ -317,7 +317,7 @@ pub struct GstDiscovererSubtitleInfo {
impl ::std::fmt::Debug for GstDiscovererSubtitleInfo {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstDiscovererSubtitleInfo @ {:p}", self))
f.debug_struct(&format!("GstDiscovererSubtitleInfo @ {self:p}"))
.finish()
}
}
@ -330,7 +330,7 @@ pub struct GstDiscovererVideoInfo {
impl ::std::fmt::Debug for GstDiscovererVideoInfo {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstDiscovererVideoInfo @ {:p}", self))
f.debug_struct(&format!("GstDiscovererVideoInfo @ {self:p}"))
.finish()
}
}
@ -343,7 +343,7 @@ pub struct GstEncodingAudioProfile {
impl ::std::fmt::Debug for GstEncodingAudioProfile {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstEncodingAudioProfile @ {:p}", self))
f.debug_struct(&format!("GstEncodingAudioProfile @ {self:p}"))
.finish()
}
}
@ -356,7 +356,7 @@ pub struct GstEncodingContainerProfile {
impl ::std::fmt::Debug for GstEncodingContainerProfile {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstEncodingContainerProfile @ {:p}", self))
f.debug_struct(&format!("GstEncodingContainerProfile @ {self:p}"))
.finish()
}
}
@ -369,7 +369,7 @@ pub struct GstEncodingProfile {
impl ::std::fmt::Debug for GstEncodingProfile {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstEncodingProfile @ {:p}", self))
f.debug_struct(&format!("GstEncodingProfile @ {self:p}"))
.finish()
}
}
@ -382,7 +382,7 @@ pub struct GstEncodingTarget {
impl ::std::fmt::Debug for GstEncodingTarget {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstEncodingTarget @ {:p}", self))
f.debug_struct(&format!("GstEncodingTarget @ {self:p}"))
.finish()
}
}
@ -395,7 +395,7 @@ pub struct GstEncodingVideoProfile {
impl ::std::fmt::Debug for GstEncodingVideoProfile {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstEncodingVideoProfile @ {:p}", self))
f.debug_struct(&format!("GstEncodingVideoProfile @ {self:p}"))
.finish()
}
}

View file

@ -41,7 +41,7 @@ impl Compiler {
cmd.arg(out);
let status = cmd.spawn()?.wait()?;
if !status.success() {
return Err(format!("compilation command {:?} failed, {}", &cmd, status).into());
return Err(format!("compilation command {cmd:?} failed, {status}").into());
}
Ok(())
}
@ -57,7 +57,7 @@ fn get_var(name: &str, default: &str) -> Result<Vec<String>, Box<dyn Error>> {
match env::var(name) {
Ok(value) => Ok(shell_words::split(&value)?),
Err(env::VarError::NotPresent) => Ok(shell_words::split(default)?),
Err(err) => Err(format!("{} {}", name, err).into()),
Err(err) => Err(format!("{name} {err}").into()),
}
}
@ -71,7 +71,7 @@ fn pkg_config_cflags(packages: &[&str]) -> Result<Vec<String>, Box<dyn Error>> {
cmd.args(packages);
let out = cmd.output()?;
if !out.status.success() {
return Err(format!("command {:?} returned {}", &cmd, out.status).into());
return Err(format!("command {cmd:?} returned {}", out.status).into());
}
let stdout = str::from_utf8(&out.stdout)?;
Ok(shell_words::split(stdout.trim())?)
@ -127,15 +127,14 @@ fn cross_validate_constants_with_c() {
{
if rust_name != c_name {
results.record_failed();
eprintln!("Name mismatch:\nRust: {:?}\nC: {:?}", rust_name, c_name,);
eprintln!("Name mismatch:\nRust: {rust_name:?}\nC: {c_name:?}");
continue;
}
if rust_value != c_value {
results.record_failed();
eprintln!(
"Constant value mismatch for {}\nRust: {:?}\nC: {:?}",
rust_name, rust_value, &c_value
"Constant value mismatch for {rust_name}\nRust: {rust_value:?}\nC: {c_value:?}",
);
continue;
}
@ -165,16 +164,13 @@ fn cross_validate_layout_with_c() {
{
if rust_name != c_name {
results.record_failed();
eprintln!("Name mismatch:\nRust: {:?}\nC: {:?}", rust_name, c_name,);
eprintln!("Name mismatch:\nRust: {rust_name:?}\nC: {c_name:?}");
continue;
}
if rust_layout != c_layout {
results.record_failed();
eprintln!(
"Layout mismatch for {}\nRust: {:?}\nC: {:?}",
rust_name, rust_layout, &c_layout
);
eprintln!("Layout mismatch for {rust_name}\nRust: {rust_layout:?}\nC: {c_layout:?}",);
continue;
}
@ -195,7 +191,7 @@ fn get_c_output(name: &str) -> Result<String, Box<dyn Error>> {
let mut abi_cmd = Command::new(exe);
let output = abi_cmd.output()?;
if !output.status.success() {
return Err(format!("command {:?} failed, {:?}", &abi_cmd, &output).into());
return Err(format!("command {abi_cmd:?} failed, {output:?}").into());
}
Ok(String::from_utf8(output.stdout)?)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 952ff416b599)
Generated by gir (https://github.com/gtk-rs/gir @ e79806af2905)
from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 15396abcca88)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ad1d9ed0a03e)

View file

@ -12,7 +12,7 @@ fn main() {} // prevent linking libraries to avoid documentation failure
#[cfg(not(feature = "dox"))]
fn main() {
if let Err(s) = system_deps::Config::new().probe() {
println!("cargo:warning={}", s);
println!("cargo:warning={s}");
process::exit(1);
}
}

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 952ff416b599)
Generated by gir (https://github.com/gtk-rs/gir @ e79806af2905)
from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 15396abcca88)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ad1d9ed0a03e)

View file

@ -135,7 +135,7 @@ pub struct GstPlayVideoRendererInterface {
impl ::std::fmt::Debug for GstPlayVideoRendererInterface {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstPlayVideoRendererInterface @ {:p}", self))
f.debug_struct(&format!("GstPlayVideoRendererInterface @ {self:p}"))
.field("parent_iface", &self.parent_iface)
.field("create_video_sink", &self.create_video_sink)
.finish()
@ -151,7 +151,7 @@ pub struct GstPlayVisualization {
impl ::std::fmt::Debug for GstPlayVisualization {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstPlayVisualization @ {:p}", self))
f.debug_struct(&format!("GstPlayVisualization @ {self:p}"))
.field("name", &self.name)
.field("description", &self.description)
.finish()
@ -167,7 +167,7 @@ pub struct GstPlay {
impl ::std::fmt::Debug for GstPlay {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstPlay @ {:p}", self)).finish()
f.debug_struct(&format!("GstPlay @ {self:p}")).finish()
}
}
@ -179,7 +179,7 @@ pub struct GstPlayAudioInfo {
impl ::std::fmt::Debug for GstPlayAudioInfo {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstPlayAudioInfo @ {:p}", self))
f.debug_struct(&format!("GstPlayAudioInfo @ {self:p}"))
.finish()
}
}
@ -192,7 +192,7 @@ pub struct GstPlayMediaInfo {
impl ::std::fmt::Debug for GstPlayMediaInfo {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstPlayMediaInfo @ {:p}", self))
f.debug_struct(&format!("GstPlayMediaInfo @ {self:p}"))
.finish()
}
}
@ -205,7 +205,7 @@ pub struct GstPlaySignalAdapter {
impl ::std::fmt::Debug for GstPlaySignalAdapter {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstPlaySignalAdapter @ {:p}", self))
f.debug_struct(&format!("GstPlaySignalAdapter @ {self:p}"))
.finish()
}
}
@ -218,7 +218,7 @@ pub struct GstPlayStreamInfo {
impl ::std::fmt::Debug for GstPlayStreamInfo {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstPlayStreamInfo @ {:p}", self))
f.debug_struct(&format!("GstPlayStreamInfo @ {self:p}"))
.finish()
}
}
@ -231,7 +231,7 @@ pub struct GstPlaySubtitleInfo {
impl ::std::fmt::Debug for GstPlaySubtitleInfo {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstPlaySubtitleInfo @ {:p}", self))
f.debug_struct(&format!("GstPlaySubtitleInfo @ {self:p}"))
.finish()
}
}
@ -244,7 +244,7 @@ pub struct GstPlayVideoInfo {
impl ::std::fmt::Debug for GstPlayVideoInfo {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstPlayVideoInfo @ {:p}", self))
f.debug_struct(&format!("GstPlayVideoInfo @ {self:p}"))
.finish()
}
}
@ -257,7 +257,7 @@ pub struct GstPlayVideoOverlayVideoRenderer {
impl ::std::fmt::Debug for GstPlayVideoOverlayVideoRenderer {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstPlayVideoOverlayVideoRenderer @ {:p}", self))
f.debug_struct(&format!("GstPlayVideoOverlayVideoRenderer @ {self:p}"))
.finish()
}
}
@ -271,7 +271,7 @@ pub struct GstPlayVideoRenderer {
impl ::std::fmt::Debug for GstPlayVideoRenderer {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
write!(f, "GstPlayVideoRenderer @ {:p}", self)
write!(f, "GstPlayVideoRenderer @ {self:p}")
}
}

View file

@ -41,7 +41,7 @@ impl Compiler {
cmd.arg(out);
let status = cmd.spawn()?.wait()?;
if !status.success() {
return Err(format!("compilation command {:?} failed, {}", &cmd, status).into());
return Err(format!("compilation command {cmd:?} failed, {status}").into());
}
Ok(())
}
@ -57,7 +57,7 @@ fn get_var(name: &str, default: &str) -> Result<Vec<String>, Box<dyn Error>> {
match env::var(name) {
Ok(value) => Ok(shell_words::split(&value)?),
Err(env::VarError::NotPresent) => Ok(shell_words::split(default)?),
Err(err) => Err(format!("{} {}", name, err).into()),
Err(err) => Err(format!("{name} {err}").into()),
}
}
@ -71,7 +71,7 @@ fn pkg_config_cflags(packages: &[&str]) -> Result<Vec<String>, Box<dyn Error>> {
cmd.args(packages);
let out = cmd.output()?;
if !out.status.success() {
return Err(format!("command {:?} returned {}", &cmd, out.status).into());
return Err(format!("command {cmd:?} returned {}", out.status).into());
}
let stdout = str::from_utf8(&out.stdout)?;
Ok(shell_words::split(stdout.trim())?)
@ -127,15 +127,14 @@ fn cross_validate_constants_with_c() {
{
if rust_name != c_name {
results.record_failed();
eprintln!("Name mismatch:\nRust: {:?}\nC: {:?}", rust_name, c_name,);
eprintln!("Name mismatch:\nRust: {rust_name:?}\nC: {c_name:?}");
continue;
}
if rust_value != c_value {
results.record_failed();
eprintln!(
"Constant value mismatch for {}\nRust: {:?}\nC: {:?}",
rust_name, rust_value, &c_value
"Constant value mismatch for {rust_name}\nRust: {rust_value:?}\nC: {c_value:?}",
);
continue;
}
@ -165,16 +164,13 @@ fn cross_validate_layout_with_c() {
{
if rust_name != c_name {
results.record_failed();
eprintln!("Name mismatch:\nRust: {:?}\nC: {:?}", rust_name, c_name,);
eprintln!("Name mismatch:\nRust: {rust_name:?}\nC: {c_name:?}");
continue;
}
if rust_layout != c_layout {
results.record_failed();
eprintln!(
"Layout mismatch for {}\nRust: {:?}\nC: {:?}",
rust_name, rust_layout, &c_layout
);
eprintln!("Layout mismatch for {rust_name}\nRust: {rust_layout:?}\nC: {c_layout:?}",);
continue;
}
@ -195,7 +191,7 @@ fn get_c_output(name: &str) -> Result<String, Box<dyn Error>> {
let mut abi_cmd = Command::new(exe);
let output = abi_cmd.output()?;
if !output.status.success() {
return Err(format!("command {:?} failed, {:?}", &abi_cmd, &output).into());
return Err(format!("command {abi_cmd:?} failed, {output:?}").into());
}
Ok(String::from_utf8(output.stdout)?)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 952ff416b599)
Generated by gir (https://github.com/gtk-rs/gir @ e79806af2905)
from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 15396abcca88)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ad1d9ed0a03e)

View file

@ -12,7 +12,7 @@ fn main() {} // prevent linking libraries to avoid documentation failure
#[cfg(not(feature = "dox"))]
fn main() {
if let Err(s) = system_deps::Config::new().probe() {
println!("cargo:warning={}", s);
println!("cargo:warning={s}");
process::exit(1);
}
}

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 952ff416b599)
Generated by gir (https://github.com/gtk-rs/gir @ e79806af2905)
from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 15396abcca88)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ad1d9ed0a03e)

View file

@ -98,7 +98,7 @@ pub struct GstPlayerSignalDispatcherInterface {
impl ::std::fmt::Debug for GstPlayerSignalDispatcherInterface {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstPlayerSignalDispatcherInterface @ {:p}", self))
f.debug_struct(&format!("GstPlayerSignalDispatcherInterface @ {self:p}"))
.field("parent_iface", &self.parent_iface)
.field("dispatch", &self.dispatch)
.finish()
@ -148,7 +148,7 @@ pub struct GstPlayerVideoRendererInterface {
impl ::std::fmt::Debug for GstPlayerVideoRendererInterface {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstPlayerVideoRendererInterface @ {:p}", self))
f.debug_struct(&format!("GstPlayerVideoRendererInterface @ {self:p}"))
.field("parent_iface", &self.parent_iface)
.field("create_video_sink", &self.create_video_sink)
.finish()
@ -164,7 +164,7 @@ pub struct GstPlayerVisualization {
impl ::std::fmt::Debug for GstPlayerVisualization {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstPlayerVisualization @ {:p}", self))
f.debug_struct(&format!("GstPlayerVisualization @ {self:p}"))
.field("name", &self.name)
.field("description", &self.description)
.finish()
@ -180,7 +180,7 @@ pub struct GstPlayer {
impl ::std::fmt::Debug for GstPlayer {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstPlayer @ {:p}", self)).finish()
f.debug_struct(&format!("GstPlayer @ {self:p}")).finish()
}
}
@ -192,7 +192,7 @@ pub struct GstPlayerAudioInfo {
impl ::std::fmt::Debug for GstPlayerAudioInfo {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstPlayerAudioInfo @ {:p}", self))
f.debug_struct(&format!("GstPlayerAudioInfo @ {self:p}"))
.finish()
}
}
@ -205,11 +205,8 @@ pub struct GstPlayerGMainContextSignalDispatcher {
impl ::std::fmt::Debug for GstPlayerGMainContextSignalDispatcher {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!(
"GstPlayerGMainContextSignalDispatcher @ {:p}",
self
))
.finish()
f.debug_struct(&format!("GstPlayerGMainContextSignalDispatcher @ {self:p}"))
.finish()
}
}
@ -221,7 +218,7 @@ pub struct GstPlayerMediaInfo {
impl ::std::fmt::Debug for GstPlayerMediaInfo {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstPlayerMediaInfo @ {:p}", self))
f.debug_struct(&format!("GstPlayerMediaInfo @ {self:p}"))
.finish()
}
}
@ -234,7 +231,7 @@ pub struct GstPlayerStreamInfo {
impl ::std::fmt::Debug for GstPlayerStreamInfo {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstPlayerStreamInfo @ {:p}", self))
f.debug_struct(&format!("GstPlayerStreamInfo @ {self:p}"))
.finish()
}
}
@ -247,7 +244,7 @@ pub struct GstPlayerSubtitleInfo {
impl ::std::fmt::Debug for GstPlayerSubtitleInfo {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstPlayerSubtitleInfo @ {:p}", self))
f.debug_struct(&format!("GstPlayerSubtitleInfo @ {self:p}"))
.finish()
}
}
@ -260,7 +257,7 @@ pub struct GstPlayerVideoInfo {
impl ::std::fmt::Debug for GstPlayerVideoInfo {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstPlayerVideoInfo @ {:p}", self))
f.debug_struct(&format!("GstPlayerVideoInfo @ {self:p}"))
.finish()
}
}
@ -273,7 +270,7 @@ pub struct GstPlayerVideoOverlayVideoRenderer {
impl ::std::fmt::Debug for GstPlayerVideoOverlayVideoRenderer {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstPlayerVideoOverlayVideoRenderer @ {:p}", self))
f.debug_struct(&format!("GstPlayerVideoOverlayVideoRenderer @ {self:p}"))
.finish()
}
}
@ -287,7 +284,7 @@ pub struct GstPlayerSignalDispatcher {
impl ::std::fmt::Debug for GstPlayerSignalDispatcher {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
write!(f, "GstPlayerSignalDispatcher @ {:p}", self)
write!(f, "GstPlayerSignalDispatcher @ {self:p}")
}
}
@ -299,7 +296,7 @@ pub struct GstPlayerVideoRenderer {
impl ::std::fmt::Debug for GstPlayerVideoRenderer {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
write!(f, "GstPlayerVideoRenderer @ {:p}", self)
write!(f, "GstPlayerVideoRenderer @ {self:p}")
}
}

View file

@ -41,7 +41,7 @@ impl Compiler {
cmd.arg(out);
let status = cmd.spawn()?.wait()?;
if !status.success() {
return Err(format!("compilation command {:?} failed, {}", &cmd, status).into());
return Err(format!("compilation command {cmd:?} failed, {status}").into());
}
Ok(())
}
@ -57,7 +57,7 @@ fn get_var(name: &str, default: &str) -> Result<Vec<String>, Box<dyn Error>> {
match env::var(name) {
Ok(value) => Ok(shell_words::split(&value)?),
Err(env::VarError::NotPresent) => Ok(shell_words::split(default)?),
Err(err) => Err(format!("{} {}", name, err).into()),
Err(err) => Err(format!("{name} {err}").into()),
}
}
@ -71,7 +71,7 @@ fn pkg_config_cflags(packages: &[&str]) -> Result<Vec<String>, Box<dyn Error>> {
cmd.args(packages);
let out = cmd.output()?;
if !out.status.success() {
return Err(format!("command {:?} returned {}", &cmd, out.status).into());
return Err(format!("command {cmd:?} returned {}", out.status).into());
}
let stdout = str::from_utf8(&out.stdout)?;
Ok(shell_words::split(stdout.trim())?)
@ -127,15 +127,14 @@ fn cross_validate_constants_with_c() {
{
if rust_name != c_name {
results.record_failed();
eprintln!("Name mismatch:\nRust: {:?}\nC: {:?}", rust_name, c_name,);
eprintln!("Name mismatch:\nRust: {rust_name:?}\nC: {c_name:?}");
continue;
}
if rust_value != c_value {
results.record_failed();
eprintln!(
"Constant value mismatch for {}\nRust: {:?}\nC: {:?}",
rust_name, rust_value, &c_value
"Constant value mismatch for {rust_name}\nRust: {rust_value:?}\nC: {c_value:?}",
);
continue;
}
@ -165,16 +164,13 @@ fn cross_validate_layout_with_c() {
{
if rust_name != c_name {
results.record_failed();
eprintln!("Name mismatch:\nRust: {:?}\nC: {:?}", rust_name, c_name,);
eprintln!("Name mismatch:\nRust: {rust_name:?}\nC: {c_name:?}");
continue;
}
if rust_layout != c_layout {
results.record_failed();
eprintln!(
"Layout mismatch for {}\nRust: {:?}\nC: {:?}",
rust_name, rust_layout, &c_layout
);
eprintln!("Layout mismatch for {rust_name}\nRust: {rust_layout:?}\nC: {c_layout:?}",);
continue;
}
@ -195,7 +191,7 @@ fn get_c_output(name: &str) -> Result<String, Box<dyn Error>> {
let mut abi_cmd = Command::new(exe);
let output = abi_cmd.output()?;
if !output.status.success() {
return Err(format!("command {:?} failed, {:?}", &abi_cmd, &output).into());
return Err(format!("command {abi_cmd:?} failed, {output:?}").into());
}
Ok(String::from_utf8(output.stdout)?)

View file

@ -14,9 +14,9 @@ bitflags! {
#[doc(alias = "GstRTPBufferFlags")]
pub struct RTPBufferFlags: u32 {
#[doc(alias = "GST_RTP_BUFFER_FLAG_RETRANSMISSION")]
const RETRANSMISSION = ffi::GST_RTP_BUFFER_FLAG_RETRANSMISSION as u32;
const RETRANSMISSION = ffi::GST_RTP_BUFFER_FLAG_RETRANSMISSION as _;
#[doc(alias = "GST_RTP_BUFFER_FLAG_REDUNDANT")]
const REDUNDANT = ffi::GST_RTP_BUFFER_FLAG_REDUNDANT as u32;
const REDUNDANT = ffi::GST_RTP_BUFFER_FLAG_REDUNDANT as _;
}
}
@ -74,7 +74,7 @@ bitflags! {
#[doc(alias = "GstRTPBufferMapFlags")]
pub struct RTPBufferMapFlags: u32 {
#[doc(alias = "GST_RTP_BUFFER_MAP_FLAG_SKIP_PADDING")]
const SKIP_PADDING = ffi::GST_RTP_BUFFER_MAP_FLAG_SKIP_PADDING as u32;
const SKIP_PADDING = ffi::GST_RTP_BUFFER_MAP_FLAG_SKIP_PADDING as _;
}
}
@ -134,15 +134,15 @@ bitflags! {
#[doc(alias = "GstRTPHeaderExtensionDirection")]
pub struct RTPHeaderExtensionDirection: u32 {
#[doc(alias = "GST_RTP_HEADER_EXTENSION_DIRECTION_INACTIVE")]
const INACTIVE = ffi::GST_RTP_HEADER_EXTENSION_DIRECTION_INACTIVE as u32;
const INACTIVE = ffi::GST_RTP_HEADER_EXTENSION_DIRECTION_INACTIVE as _;
#[doc(alias = "GST_RTP_HEADER_EXTENSION_DIRECTION_SENDONLY")]
const SENDONLY = ffi::GST_RTP_HEADER_EXTENSION_DIRECTION_SENDONLY as u32;
const SENDONLY = ffi::GST_RTP_HEADER_EXTENSION_DIRECTION_SENDONLY as _;
#[doc(alias = "GST_RTP_HEADER_EXTENSION_DIRECTION_RECVONLY")]
const RECVONLY = ffi::GST_RTP_HEADER_EXTENSION_DIRECTION_RECVONLY as u32;
const RECVONLY = ffi::GST_RTP_HEADER_EXTENSION_DIRECTION_RECVONLY as _;
#[doc(alias = "GST_RTP_HEADER_EXTENSION_DIRECTION_SENDRECV")]
const SENDRECV = ffi::GST_RTP_HEADER_EXTENSION_DIRECTION_SENDRECV as u32;
const SENDRECV = ffi::GST_RTP_HEADER_EXTENSION_DIRECTION_SENDRECV as _;
#[doc(alias = "GST_RTP_HEADER_EXTENSION_DIRECTION_INHERITED")]
const INHERITED = ffi::GST_RTP_HEADER_EXTENSION_DIRECTION_INHERITED as u32;
const INHERITED = ffi::GST_RTP_HEADER_EXTENSION_DIRECTION_INHERITED as _;
}
}
@ -214,9 +214,9 @@ bitflags! {
#[doc(alias = "GstRTPHeaderExtensionFlags")]
pub struct RTPHeaderExtensionFlags: u32 {
#[doc(alias = "GST_RTP_HEADER_EXTENSION_ONE_BYTE")]
const ONE_BYTE = ffi::GST_RTP_HEADER_EXTENSION_ONE_BYTE as u32;
const ONE_BYTE = ffi::GST_RTP_HEADER_EXTENSION_ONE_BYTE as _;
#[doc(alias = "GST_RTP_HEADER_EXTENSION_TWO_BYTE")]
const TWO_BYTE = ffi::GST_RTP_HEADER_EXTENSION_TWO_BYTE as u32;
const TWO_BYTE = ffi::GST_RTP_HEADER_EXTENSION_TWO_BYTE as _;
}
}

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 952ff416b599)
Generated by gir (https://github.com/gtk-rs/gir @ e79806af2905)
from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 15396abcca88)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ad1d9ed0a03e)

View file

@ -12,7 +12,7 @@ fn main() {} // prevent linking libraries to avoid documentation failure
#[cfg(not(feature = "dox"))]
fn main() {
if let Err(s) = system_deps::Config::new().probe() {
println!("cargo:warning={}", s);
println!("cargo:warning={s}");
process::exit(1);
}
}

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 952ff416b599)
Generated by gir (https://github.com/gtk-rs/gir @ e79806af2905)
from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 15396abcca88)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ad1d9ed0a03e)

Some files were not shown because too many files have changed in this diff Show more