mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-12-27 18:40:30 +00:00
Remove deprecated std::error::Error::description() impls
This commit is contained in:
parent
7c19318097
commit
94ace06883
3 changed files with 4 additions and 24 deletions
|
@ -266,15 +266,7 @@ impl fmt::Display for EncodingProfileBuilderError {
|
|||
}
|
||||
}
|
||||
|
||||
impl error::Error for EncodingProfileBuilderError {
|
||||
fn description(&self) -> &str {
|
||||
"invalid parameters to build encoding profile"
|
||||
}
|
||||
|
||||
fn cause(&self) -> Option<&dyn error::Error> {
|
||||
None
|
||||
}
|
||||
}
|
||||
impl error::Error for EncodingProfileBuilderError {}
|
||||
|
||||
#[derive(Debug)]
|
||||
struct EncodingProfileBuilderCommonData<'a> {
|
||||
|
|
|
@ -39,11 +39,7 @@ pub struct Percent(pub Option<u32>);
|
|||
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
||||
pub struct TryFromGenericFormattedValueError(());
|
||||
|
||||
impl std::error::Error for TryFromGenericFormattedValueError {
|
||||
fn description(&self) -> &str {
|
||||
"invalid generic value format"
|
||||
}
|
||||
}
|
||||
impl std::error::Error for TryFromGenericFormattedValueError {}
|
||||
|
||||
impl std::fmt::Display for TryFromGenericFormattedValueError {
|
||||
fn fmt(&self, fmt: &mut std::fmt::Formatter) -> std::fmt::Result {
|
||||
|
@ -667,11 +663,7 @@ impl AsMut<Option<u32>> for Percent {
|
|||
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
||||
pub struct TryPercentFromFloatError(());
|
||||
|
||||
impl std::error::Error for TryPercentFromFloatError {
|
||||
fn description(&self) -> &str {
|
||||
"value out of range"
|
||||
}
|
||||
}
|
||||
impl std::error::Error for TryPercentFromFloatError {}
|
||||
|
||||
impl std::fmt::Display for TryPercentFromFloatError {
|
||||
fn fmt(&self, fmt: &mut std::fmt::Formatter) -> std::fmt::Result {
|
||||
|
|
|
@ -73,11 +73,7 @@ impl<'name> fmt::Display for GetError<'name> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'name> error::Error for GetError<'name> {
|
||||
fn description(&self) -> &str {
|
||||
"GetError: Structure field value"
|
||||
}
|
||||
}
|
||||
impl<'name> error::Error for GetError<'name> {}
|
||||
|
||||
pub struct Structure(ptr::NonNull<StructureRef>, PhantomData<StructureRef>);
|
||||
unsafe impl Send for Structure {}
|
||||
|
|
Loading…
Reference in a new issue