From 9e998bc6d658d6355468a4875838eb7113f3de62 Mon Sep 17 00:00:00 2001 From: Bugen Zhao Date: Thu, 6 Jun 2024 17:05:33 +0800 Subject: [PATCH] update docs Signed-off-by: Bugen Zhao --- src/connector/codec/src/decoder/mod.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/connector/codec/src/decoder/mod.rs b/src/connector/codec/src/decoder/mod.rs index de948855517eb..54ff3ef56f17a 100644 --- a/src/connector/codec/src/decoder/mod.rs +++ b/src/connector/codec/src/decoder/mod.rs @@ -56,7 +56,6 @@ pub trait Access { /// and we use different `path` to access one column at a time. /// /// e.g., for Avro, we access `["col_name"]`; for Debezium Avro, we access `["before", "col_name"]`. - // #[deprecated(note = "Use `access_cow` instead.")] fn access(&self, path: &[&str], type_expected: &DataType) -> AccessResult { self.access_cow(path, type_expected) .map(ToOwnedDatum::to_owned_datum) @@ -66,13 +65,12 @@ pub trait Access { /// If not overridden, it will call forward to `access` and always wrap the result in [`DatumCow::Owned`]. /// /// This should be preferred over `access` for both callers and implementors. - // TODO: remove `access` and make this the only method. + // TODO: implement this method in all parsers and remove `access` method. fn access_cow<'a>( &'a self, path: &[&str], type_expected: &DataType, ) -> AccessResult> { - // #[expect(deprecated)] self.access(path, type_expected).map(Into::into) } }