video: Fix compilation with features=v1_10

This commit is contained in:
Sebastian Dröge 2018-12-29 00:05:22 +02:00
parent 6f867443c9
commit b9d3a5a852

View file

@ -19,6 +19,7 @@ use std::cmp;
use std::fmt;
use std::mem;
use std::ptr;
#[cfg(any(feature = "v1_12", feature = "dox"))]
use std::str;
use VideoTimeCodeFlags;
@ -453,6 +454,7 @@ macro_rules! generic_impl {
generic_impl!(VideoTimeCode);
generic_impl!(ValidVideoTimeCode);
#[cfg(any(feature = "v1_12", feature = "dox"))]
impl str::FromStr for VideoTimeCode {
type Err = ();