summaryrefslogtreecommitdiffstats
path: root/src/draw.rs
diff options
context:
space:
mode:
authorJason Shirk <jasonsh@microsoft.com>2019-10-13 10:22:09 -0700
committerJason Shirk <jasonsh@microsoft.com>2019-10-13 10:22:09 -0700
commit049da5faaa8a6242f0c989859cb4cfb2823dadd8 (patch)
treecbc0c0c1c58f273fdf60a41936f637bc858ec8a4 /src/draw.rs
parent3280e66def4d41d7c8cb503c4e59a4eacd71268e (diff)
Add dyn to suppress warning
Diffstat (limited to 'src/draw.rs')
-rw-r--r--src/draw.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/draw.rs b/src/draw.rs
index 7211e620..7e82e76b 100644
--- a/src/draw.rs
+++ b/src/draw.rs
@@ -8,7 +8,7 @@ use unicode_segmentation::UnicodeSegmentation;
/// Write text to stream, surrounded by a box, leaving the cursor just
/// beyond the bottom right corner.
pub fn write_boxed(
- writer: &mut Write,
+ writer: &mut dyn Write,
text: &str,
_line_width: usize, // ignored
line_style: Style,
@@ -28,7 +28,7 @@ pub fn write_boxed(
/// Write text to stream, surrounded by a box, and extend a line from
/// the bottom right corner.
pub fn write_boxed_with_line(
- writer: &mut Write,
+ writer: &mut dyn Write,
text: &str,
line_width: usize,
line_style: Style,
@@ -41,7 +41,7 @@ pub fn write_boxed_with_line(
}
pub fn write_underlined(
- writer: &mut Write,
+ writer: &mut dyn Write,
text: &str,
line_width: usize,
line_style: Style,
@@ -53,7 +53,7 @@ pub fn write_underlined(
}
fn write_horizontal_line(
- writer: &mut Write,
+ writer: &mut dyn Write,
line_width: usize,
line_style: Style,
heavy: bool,
@@ -71,7 +71,7 @@ fn write_horizontal_line(
}
pub fn write_boxed_with_horizontal_whisker(
- writer: &mut Write,
+ writer: &mut dyn Write,
text: &str,
box_width: usize,
line_style: Style,
@@ -88,7 +88,7 @@ pub fn write_boxed_with_horizontal_whisker(
}
fn write_boxed_partial(
- writer: &mut Write,
+ writer: &mut dyn Write,
text: &str,
box_width: usize,
line_style: Style,