Closed grunch closed 2 weeks ago
The changes focus on refining the usage of the Cow
type from the std::borrow
module within the order_to_tags
and info_to_tags
functions in src/nip33.rs
. The import statement for std::borrow::Cow
is made explicit, and calls to TagKind::Custom
are updated to use Cow::Borrowed
directly. The tags
variable is restructured to enhance clarity and consistency in tag initialization. Overall, the modifications streamline the code without altering its core functionality or error handling.
File | Change Summary |
---|---|
src/nip33.rs | Updated usage of Cow type and initialization of tags in order_to_tags and info_to_tags functions. Simplified TagKind::Custom calls to use Cow::Borrowed directly. |
In the code where tags do play,
A little change has come our way.
WithCow
now clear, no more to roam,
Tags find their path, and feel like home.
Hopping through functions, neat and bright,
Our code now shines, oh what a sight! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
Cow
type for tag construction, enhancing code readability and consistency.TagKind::Custom
calls in theorder_to_tags
andinfo_to_tags
functions.