Skip to content

Consider using Into<JsValue> in invoke function #8

@LiveDuo

Description

@LiveDuo

From https://www.reddit.com/r/rust/comments/1i0hcrt/comment/m72u90d/

Note that you don't need .into() everywhere if you type the arguments as impl Into<JsValue>.

Relevant code: https://github.com/LiveDuo/tinyweb/blob/master/src/rust/src/invoke.rs#L163

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions