We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cee77ba commit b339dd7Copy full SHA for b339dd7
src/builders/document_builder.rs
@@ -27,13 +27,13 @@ impl DocumentBuilder {
27
}
28
29
30
- pub fn text(mut self, text: String) -> Self {
31
- self.text = text;
+ pub fn text(mut self, text: impl Into<String>) -> Self {
+ self.text = text.into();
32
self
33
34
35
- pub fn model(mut self, model: String) -> Self {
36
- self.model = model;
+ pub fn model(mut self, model: impl Into<String>) -> Self {
+ self.model = model.into();
37
38
39
0 commit comments