CodeChain-io / jsonrpc-filter

A proxy server that allows the only subsets of the RPCs
GNU Affero General Public License v3.0
4 stars 6 forks source link

Deref &&str before calling to_string() #23

Closed sgkim126 closed 4 years ago

sgkim126 commented 4 years ago

ToString is specialized for str and String. They are called when the to_string method is called on &str or &String but not called when the method is called on &&str or &&String.

majecty commented 4 years ago

Wow. How did you find it?

sgkim126 commented 4 years ago

Actually, it's not me, the latest clippy found it.