diff --git a/rust-runtime/aws-smithy-http/src/property_bag.rs b/rust-runtime/aws-smithy-http/src/property_bag.rs index 50e2bb1249..1ac6adc989 100644 --- a/rust-runtime/aws-smithy-http/src/property_bag.rs +++ b/rust-runtime/aws-smithy-http/src/property_bag.rs @@ -206,7 +206,7 @@ impl fmt::Debug for PropertyBag { f.debug_list().entries(self.0.contents()).finish() } } - fmt.field("contents", &Contents(&self)); + fmt.field("contents", &Contents(self)); fmt.finish() } } diff --git a/rust-runtime/aws-smithy-runtime-api/src/config_bag.rs b/rust-runtime/aws-smithy-runtime-api/src/config_bag.rs index 166da3e220..418fbd9b13 100644 --- a/rust-runtime/aws-smithy-runtime-api/src/config_bag.rs +++ b/rust-runtime/aws-smithy-runtime-api/src/config_bag.rs @@ -39,7 +39,7 @@ impl Debug for ConfigBag { } } f.debug_struct("ConfigBag") - .field("layers", &Layers(&self)) + .field("layers", &Layers(self)) .finish() } } @@ -90,7 +90,7 @@ impl Debug for Layer { } f.debug_struct("Layer") .field("name", &self.name) - .field("properties", &Contents(&self)) + .field("properties", &Contents(self)) .finish() } }