diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-01-24 19:48:54 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-01-25 20:26:09 +0200 |
commit | 43f72bf660ade91c08e09d62923c2d4635fb8e16 (patch) | |
tree | e09945f22bc20a764f47f3bca91047088cce3f90 | |
parent | a73742532a1e286b9694b416dbc7e0e9dc02b499 (diff) | |
download | subplot-43f72bf660ade91c08e09d62923c2d4635fb8e16.tar.gz |
chore: use Display, instead of .to_string
Sponsored-by: author
-rw-r--r-- | src/typeset.rs | 2 |
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)) } |