How do I fix Encodable/Decodable deprecation?

后端 未结 3 1479
灰色年华
灰色年华 2021-01-24 13:07

A few repos (e.g. https://github.com/sebcrozet/nalgebra) have errors along the lines of

warning: deriving(Decodable) is deprecated in favor of deriving(RustcDeco         


        
3条回答
  •  一向
    一向 (楼主)
    2021-01-24 13:24

    I got this working by using 0.2 version of rustc-serialize:

    [dependencies]
    rustc-serialize = "0.2"
    

提交回复
热议问题