Change some empty structs to empty enums

These should only really exist at the type-level.
This commit is contained in:
Sebastian Dröge 2018-07-25 10:07:20 +03:00
parent 26d9d304c4
commit 632d5f4c57
3 changed files with 6 additions and 5 deletions

View file

@ -20,8 +20,9 @@ use std::ops;
use std::ptr;
use std::slice;
pub struct Readable;
pub struct Writable;
pub enum Readable {}
pub enum Writable {}
pub struct VideoFrame<T>(
ffi::GstVideoFrame,
Option<gst::Buffer>,

View file

@ -24,8 +24,8 @@ use glib;
use glib::translate::{from_glib, from_glib_full, ToGlib};
use glib_ffi;
pub struct Readable;
pub struct Writable;
pub enum Readable {}
pub enum Writable {}
#[repr(C)]
pub struct BufferRef(ffi::GstBuffer);

View file

@ -30,7 +30,7 @@ pub trait Tag<'a> {
macro_rules! impl_tag(
($name:ident, $t:ty, $rust_tag:ident, $gst_tag:ident) => {
pub struct $name;
pub enum $name {}
impl<'a> Tag<'a> for $name {
type TagType = $t;
fn tag_name<'b>() -> &'b str {