minghuaw / fe2o3-amqp

A rust implementation of the AMQP1.0 protocol based on serde and tokio.
MIT License
58 stars 7 forks source link

Let `DeliveryInfo` internally use references or `Cow` #205

Open minghuaw opened 1 year ago

minghuaw commented 1 year ago

In the current implementation, DeliveryInfo::from(&delivery) will clone the delivery info carried in the delivery. A Cow could probably be used to avoid this cloning. However, this is potentially a breaking change