summaryrefslogtreecommitdiffstats
path: root/src/media_builder.rs
diff options
context:
space:
mode:
authorPaul Woolcock <paul@woolcock.us>2020-09-25 13:41:09 -0400
committerPaul Woolcock <paul@woolcock.us>2020-09-25 16:44:06 -0400
commita69d0ea928590cc2a20505c1bbf59d62b5d550a1 (patch)
tree64285e02e9ad7dae9ab44de7da1f080463760e99 /src/media_builder.rs
parent0b4ee7bfb285aa7c095ac050e2e0b8c659022113 (diff)
Cargo-fmt pass
Diffstat (limited to 'src/media_builder.rs')
-rw-r--r--src/media_builder.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/media_builder.rs b/src/media_builder.rs
index eab9c94..b4c7e92 100644
--- a/src/media_builder.rs
+++ b/src/media_builder.rs
@@ -1,5 +1,5 @@
-use std::borrow::Cow;
use serde::Serialize;
+use std::borrow::Cow;
/// A builder pattern struct for constructing a media attachment.
#[derive(Debug, Default, Clone, Serialize)]
@@ -21,6 +21,7 @@ impl MediaBuilder {
focus: None,
}
}
+
/// Set an alt text description for the attachment.
pub fn description(mut self, description: Cow<'static, str>) -> Self {
self.description = Some(description);