Skip to content

Commit 4016b9d

Browse files
committed
display: support methods producing non-string output
1 parent b529b3a commit 4016b9d

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

Cargo.lock

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ members = [".", "syn"]
33

44
[package]
55
name = "amplify_derive"
6-
version = "4.0.0-alpha.3"
6+
version = "4.0.0-alpha.5"
77
description = "Powerful derivation macros; part of the 'amplify' library"
88
authors = [
99
"Dr. Maxim Orlovsky <orlovsky@ubideco.org>",

src/display.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ impl Technique {
234234
match self {
235235
Technique::FromTrait(fmt) => fmt.into_token_stream2(span),
236236
Technique::FromMethod(path) => quote_spanned! { span =>
237-
f.write_str(& #path (self))
237+
::core::fmt::Display::fmt(&#path(self), f)
238238
},
239239
Technique::WithFormat(fmt, fmt_alt) => {
240240
let format = if alt && fmt_alt.is_some() {

0 commit comments

Comments
 (0)