@@ -217,9 +217,6 @@ pub mod value;
217217
218218pub use frame_slice:: FrameSlice ;
219219
220- pub use row:: DeserializeRow ;
221- pub use value:: DeserializeValue ;
222-
223220use std:: error:: Error ;
224221use std:: sync:: Arc ;
225222
@@ -238,8 +235,9 @@ use thiserror::Error;
238235/// one of types with an impl built into the driver fails. It is also returned
239236/// from impls generated by the `DeserializeRow` macro.
240237/// - [`value::BuiltinTypeCheckError`] is analogous to the above but is
241- /// returned from [`DeserializeValue::type_check`] instead both in the case of
242- /// builtin impls and impls generated by the `DeserializeValue` macro.
238+ /// returned from [`DeserializeValue::type_check`](value::DeserializeValue::type_check)
239+ /// instead both in the case of builtin impls and impls generated by the
240+ /// `DeserializeValue` macro.
243241/// It won't be returned by the `Session` directly, but it might be nested
244242/// in the [`row::BuiltinTypeCheckError`].
245243#[ derive( Debug , Clone , Error ) ]
@@ -269,8 +267,9 @@ impl TypeCheckError {
269267/// one of types with an impl built into the driver fails. It is also returned
270268/// from impls generated by the `DeserializeRow` macro.
271269/// - [`value::BuiltinDeserializationError`] is analogous to the above but is
272- /// returned from [`DeserializeValue::deserialize`] instead both in the case of
273- /// builtin impls and impls generated by the `DeserializeValue` macro.
270+ /// returned from [`DeserializeValue::deserialize`](value::DeserializeValue::deserialize)
271+ /// instead both in the case of builtin impls and impls generated by the
272+ /// `DeserializeValue` macro.
274273/// It won't be returned by the `Session` directly, but it might be nested
275274/// in the [`row::BuiltinDeserializationError`].
276275#[ derive( Debug , Clone , Error ) ]
@@ -296,10 +295,11 @@ impl DeserializationError {
296295// - ONLY in proper type_check()/deserialize() implementation,
297296// - BEFORE an error is cloned (because otherwise the Arc::get_mut fails).
298297macro_rules! make_error_replace_rust_name {
299- ( $fn_name: ident, $outer_err: ty, $inner_err: ty) => {
298+ ( $privacy : vis , $ fn_name: ident, $outer_err: ty, $inner_err: ty) => {
300299 // Not part of the public API; used in derive macros.
301300 #[ doc( hidden) ]
302- pub fn $fn_name<RustT >( mut err: $outer_err) -> $outer_err {
301+ #[ allow( clippy:: needless_pub_self) ]
302+ $privacy fn $fn_name<RustT >( mut err: $outer_err) -> $outer_err {
303303 // Safety: the assumed usage of this function guarantees that the Arc has not yet been cloned.
304304 let arc_mut = std:: sync:: Arc :: get_mut( & mut err. 0 ) . unwrap( ) ;
305305
0 commit comments