From 21239bcf1a32ff5d963d5ccc8399e2d744e3666c Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Mon, 3 Jan 2022 12:21:11 +0100 Subject: [PATCH] Remove serde imports section from CONTRIBUTING.md These rules can now be enforced by clippy. --- CONTRIBUTING.md | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f73de701..6d2ec764 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -130,23 +130,6 @@ use ruma_api::ruma_api; use super::MyType; ``` -### Serde Imports - -When importing methods and types from `serde_json`, methods should be such as -`serde_json::{from,to}_{slice,string,value,vec}` should be imported as -`{from,to}_json_{slice,string,value,vec}`. - -For example: - -```rust -use serde_json::{ - from_value as from_json_value, - to_str as to_json_str, -}; -``` - -Also, `serde_json::Value` should be imported as `JsonValue`. - ### Commit Messages Write commit messages using the imperative mood, as if completing the sentence: