Anush008/fastembed-rs

Implement `Display` instead of `ToString`

angelofallars opened this issue ยท 1 comments

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.

๐ŸŽ‰ This issue has been resolved in version 2.0.1 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€