Implement `Display` instead of `ToString`
angelofallars opened this issue ยท 1 comments
angelofallars commented
There is a trait implementation of ToString
for EmbeddingModel
https://github.com/Anush008/fastembed-rs/blob/main/src/lib.rs#L131.
The documentation for ToString
says that you shouldn't implement the trait directly. It recommends to instead implement Display
and you get to_string()
for free. Plus, EmbeddingModel
can then be printed without using the Debug
output.
github-actions commented
๐ This issue has been resolved in version 2.0.1 ๐
The release is available on:
- GitHub release
v2.0.1
Your semantic-release bot ๐ฆ๐