aboutsummaryrefslogtreecommitdiffstats
path: root/src/teamspeak/bbcode.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/teamspeak/bbcode.rs')
-rw-r--r--src/teamspeak/bbcode.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/teamspeak/bbcode.rs b/src/teamspeak/bbcode.rs
index 28be08a..91d576a 100644
--- a/src/teamspeak/bbcode.rs
+++ b/src/teamspeak/bbcode.rs
@@ -1,4 +1,4 @@
-use std::fmt::{Formatter, Display, Error};
+use std::fmt::{Display, Error, Formatter};
#[allow(dead_code)]
pub enum BbCode<'a> {
@@ -14,7 +14,9 @@ impl<'a> Display for BbCode<'a> {
BbCode::Bold(text) => fmt.write_fmt(format_args!("[B]{}[/B]", text))?,
BbCode::Italic(text) => fmt.write_fmt(format_args!("[I]{}[/I]", text))?,
BbCode::Underline(text) => fmt.write_fmt(format_args!("[U]{}[/U]", text))?,
- BbCode::Link(text, url) => fmt.write_fmt(format_args!("[URL={}]{}[/URL]", url, text))?,
+ BbCode::Link(text, url) => {
+ fmt.write_fmt(format_args!("[URL={}]{}[/URL]", url, text))?
+ }
};
Ok(())