Skip to content

Commit 465dbb9

Browse files
committed
remove unused on schema comparison
1 parent ae1cb11 commit 465dbb9

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

kernel/src/schema/compare.rs

-5
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ use super::{DataType, StructField, StructType};
2828

2929
/// The nullability flag of a schema's field. This can be compared with a read schema field's
3030
/// nullability flag using [`Nullable::can_read_as`].
31-
#[allow(unused)]
3231
#[derive(Clone, Copy)]
3332
pub(crate) struct Nullable(bool);
3433

@@ -50,14 +49,10 @@ pub(crate) enum Error {
5049
}
5150

5251
/// A [`std::result::Result`] that has the schema comparison [`Error`] as the error variant.
53-
#[allow(unused)]
5452
pub(crate) type SchemaComparisonResult = Result<(), Error>;
5553

5654
/// Represents a schema compatibility check for the type. If `self` can be read as `read_type`,
5755
/// this function returns `Ok(())`. Otherwise, this function returns `Err`.
58-
///
59-
/// TODO (Oussama): Remove the `allow(unsued)` once this is used in CDF.
60-
#[allow(unused)]
6156
pub(crate) trait SchemaComparison {
6257
fn can_read_as(&self, read_type: &Self) -> SchemaComparisonResult;
6358
}

0 commit comments

Comments
 (0)