diff --git a/src/io/flight/mod.rs b/src/io/flight/mod.rs index 17f7c20d884..3c0dc0a919f 100644 --- a/src/io/flight/mod.rs +++ b/src/io/flight/mod.rs @@ -241,11 +241,9 @@ pub fn deserialize_message( )?; Ok(None) } - t => { - return Err(Error::nyi(format!( - "Reading types other than record batches not yet supported, unable to read {:?}", - t - ))); - } + t => Err(Error::nyi(format!( + "Reading types other than record batches not yet supported, unable to read {:?}", + t + ))), } } diff --git a/src/io/orc/read/mod.rs b/src/io/orc/read/mod.rs index 597ecbc9fbe..ca6ce7354c3 100644 --- a/src/io/orc/read/mod.rs +++ b/src/io/orc/read/mod.rs @@ -354,6 +354,6 @@ pub fn deserialize(data_type: DataType, column: &Column) -> Result deserialize_utf8::(data_type, column).map(|x| x.boxed()), DataType::Binary => deserialize_binary::(data_type, column).map(|x| x.boxed()), DataType::LargeBinary => deserialize_binary::(data_type, column).map(|x| x.boxed()), - dt => return Err(Error::nyi(format!("Deserializing {dt:?} from ORC"))), + dt => Err(Error::nyi(format!("Deserializing {dt:?} from ORC"))), } }