From 0e2320cc2bc96f2064400a5fe84fc5fba77ab42e Mon Sep 17 00:00:00 2001 From: Josh Triplett Date: Wed, 3 Sep 2025 15:31:39 -0700 Subject: [PATCH] Fix typo "buidler" --- src/macro_utilities.rs | 2 +- src/queue_pair.rs | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/macro_utilities.rs b/src/macro_utilities.rs index d3b40d82..19f00d70 100644 --- a/src/macro_utilities.rs +++ b/src/macro_utilities.rs @@ -15,7 +15,7 @@ macro_rules! impl_into_io_error { /// Convert different `BuilderError`s. /// Impl `From` for `YBuilderError`. #[macro_export] -macro_rules! impl_from_buidler_error_for_another { +macro_rules! impl_from_builder_error_for_another { ($x:ty ,$y:ty) => { impl From<$x> for $y { #[inline] diff --git a/src/queue_pair.rs b/src/queue_pair.rs index aa151c5f..6a6b75b1 100644 --- a/src/queue_pair.rs +++ b/src/queue_pair.rs @@ -4,7 +4,7 @@ use crate::{ cq_event_listener::{CQEventListener, LmrInners}, error_utilities::{log_last_os_err, log_ret_last_os_err, log_ret_last_os_err_with_note}, gid::Gid, - impl_from_buidler_error_for_another, impl_into_io_error, + impl_from_builder_error_for_another, impl_into_io_error, memory_region::{ local::{LocalMrReadAccess, LocalMrWriteAccess, RwLocalMrInner}, remote::{RemoteMrReadAccess, RemoteMrWriteAccess}, @@ -141,7 +141,7 @@ impl QueuePairCap { } } -impl_from_buidler_error_for_another!(QueuePairCapBuilderError, QueuePairInitAttrBuilderError); +impl_from_builder_error_for_another!(QueuePairCapBuilderError, QueuePairInitAttrBuilderError); impl_into_io_error!(QueuePairCapBuilderError); @@ -290,7 +290,7 @@ impl AddressHandlerBuilder { &mut self.grh } - /// Get `port_num` of this buidler + /// Get `port_num` of this builder pub(crate) fn get_port_num(&self) -> Option { self.port_num } @@ -314,7 +314,7 @@ impl From for ibv_ah_attr { } } -impl_from_buidler_error_for_another!(AddressHandlerBuilderError, RQAttrBuilderError); +impl_from_builder_error_for_another!(AddressHandlerBuilderError, RQAttrBuilderError); /// Gloabel route information about remote end. /// This is useful when sending packets to another subnet. @@ -359,7 +359,7 @@ impl From for ibv_global_route { } } -impl_from_buidler_error_for_another!(GlobalRouteHeaderBuilderError, AddressHandlerBuilderError); +impl_from_builder_error_for_another!(GlobalRouteHeaderBuilderError, AddressHandlerBuilderError); /// The path MTU (Maximum Transfer Unit) i.e. the maximum payload size of a packet that /// can be transferred in the path. For UC and RC QPs, when needed, the RDMA device will @@ -445,14 +445,14 @@ impl RQAttrBuilder { .dgid(*remote.gid()); } - /// Get `port_num` of this buidler + /// Get `port_num` of this builder pub(crate) fn get_port_num(&self) -> u8 { self.address_handler .get_port_num() .unwrap_or(DEFAULT_PORT_NUM) } - /// Get source gid index of this buidler + /// Get source gid index of this builder pub(crate) fn get_sgid_index(&self) -> u8 { self.address_handler .grh