Merge pull request #450 from mikeyhew/remove-fmt-lifetime-warning

Remove warning about hidden lifetime parameter
This commit is contained in:
Markus Westerlind 2019-03-03 09:08:04 +01:00 committed by GitHub
commit 4989a9d670
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,7 +74,7 @@ pub fn compile<W: Write>(
rust!(out, "impl<'a> {}fmt::Display for Token<'a> {{", prefix);
rust!(
out,
"fn fmt(&self, formatter: &mut {}fmt::Formatter) -> Result<(), {}fmt::Error> {{",
"fn fmt<'f>(&self, formatter: &mut {}fmt::Formatter<'f>) -> Result<(), {}fmt::Error> {{",
prefix,
prefix
);