Skip to content

I think I find a error from page 520. #3

@sidgwick

Description

@sidgwick

the code from P.520:

$( fields.insert($crate::ToString::to_string($key), json!($value)); )*

the code in this repository is:

$( fields.insert($crate::macros::ToString::to_string($key), json!($value)); )*

It should use the second version $crate::macros::ToString because ToString is private, just like HashMap?

😄

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions