Skip to content
This repository was archived by the owner on Oct 23, 2025. It is now read-only.

Commit 440ea64

Browse files
committed
Adjust new span methods for span! macro
1 parent cdd737a commit 440ea64

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/components/span.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,19 +78,19 @@ impl Span {
7878
Ok(self)
7979
}
8080

81-
pub fn bold(mut self, yes: bool) -> Self {
81+
pub fn bold(mut self, yes: bool) -> Result<Self, Error> {
8282
self.bold = yes;
83-
self
83+
Ok(self)
8484
}
8585

86-
pub fn underline(mut self, yes: bool) -> Self {
86+
pub fn underline(mut self, yes: bool) -> Result<Self, Error> {
8787
self.underline = yes;
88-
self
88+
Ok(self)
8989
}
9090

91-
pub fn intense(mut self, yes: bool) -> Self {
91+
pub fn intense(mut self, yes: bool) -> Result<Self, Error> {
9292
self.intense = yes;
93-
self
93+
Ok(self)
9494
}
9595
}
9696

0 commit comments

Comments
 (0)