Skip to content

Commit b339dd7

Browse files
generalltimvisee
andauthored
Update src/builders/document_builder.rs
Co-authored-by: Tim Visée <tim@visee.me>
1 parent cee77ba commit b339dd7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/builders/document_builder.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ impl DocumentBuilder {
2727
}
2828
}
2929

30-
pub fn text(mut self, text: String) -> Self {
31-
self.text = text;
30+
pub fn text(mut self, text: impl Into<String>) -> Self {
31+
self.text = text.into();
3232
self
3333
}
3434

35-
pub fn model(mut self, model: String) -> Self {
36-
self.model = model;
35+
pub fn model(mut self, model: impl Into<String>) -> Self {
36+
self.model = model.into();
3737
self
3838
}
3939

0 commit comments

Comments
 (0)