relative-path icon indicating copy to clipboard operation
relative-path copied to clipboard

`&RelativePath` doesn't implement `Deserialize`

Open Ontonator opened this issue 5 years ago • 0 comments

&RelativePath doesn't implement Deserialize but &std::path::Path does. I'm not too familiar with the inner workings of serde, but since both RelativePath and std::path::Path are both just wrappers around str and OsStr respectively, it seems like it should work. Currently, an extra allocation and copy must be performed when deserialising relative paths because a RelativePathBuf must be used instead.

Ontonator avatar Dec 14 '20 23:12 Ontonator