Commit 632d5f4c authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

Change some empty structs to empty enums

These should only really exist at the type-level.
parent 26d9d304
......@@ -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>,
......
......@@ -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);
......
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment