summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-01-24 19:48:54 +0200
committerLars Wirzenius <liw@liw.fi>2022-01-25 20:26:09 +0200
commit43f72bf660ade91c08e09d62923c2d4635fb8e16 (patch)
treee09945f22bc20a764f47f3bca91047088cce3f90 /src
parenta73742532a1e286b9694b416dbc7e0e9dc02b499 (diff)
downloadsubplot-43f72bf660ade91c08e09d62923c2d4635fb8e16.tar.gz
chore: use Display, instead of .to_string
Sponsored-by: author
Diffstat (limited to 'src')
-rw-r--r--src/typeset.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/typeset.rs b/src/typeset.rs
index 97780a4..2bd1fd2 100644
--- a/src/typeset.rs
+++ b/src/typeset.rs
@@ -13,7 +13,7 @@ use pandoc_ast::Target;
/// Typeset an error as a Pandoc AST Block element.
pub fn error(err: SubplotError) -> Block {
- let msg = format!("ERROR: {}", err.to_string());
+ let msg = format!("ERROR: {}", err);
Block::Para(error_msg(&msg))
}