Skip to content
This repository was archived by the owner on Aug 12, 2021. It is now read-only.

Commit 21c53bc

Browse files
committed
Prefer to_string() to format!()
1 parent e65d552 commit 21c53bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

terminfo/parser/compiled.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ pub fn parse(file: &mut io::Read, longnames: bool) -> Result<TermInfo, String> {
189189
macro_rules! t( ($e:expr) => (
190190
match $e {
191191
Ok(e) => e,
192-
Err(e) => return Err(format!("{}", e))
192+
Err(e) => return Err(e.to_string())
193193
}
194194
) );
195195

0 commit comments

Comments
 (0)