From 647f1ef8338d6fbe5742f7099900c62d609b035b Mon Sep 17 00:00:00 2001 From: Luke Carr Date: Sat, 25 Feb 2023 18:31:11 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Sorted=20README=20sections=20alp?= =?UTF-8?q?habetically?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Luke Carr --- README.md | 74 +++++++++++++++++++++++++++---------------------------- 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/README.md b/README.md index 0b4b175..21c63de 100644 --- a/README.md +++ b/README.md @@ -18,32 +18,27 @@ Some of these settings are set to their default values; this is intentional to e This is a required option because some of the below settings are considered "unstable" by rustfmt. -### `reorder_imports = true` - -Ensures that imports and extern crate statements are sorted alphabetically (in groups). - -```rs -use dolor; -use ipsum; -use lorem; -use sit; -``` +### `group_imports = "StdExternalCrate"` -### `imports_layout = "HorizontalVertical"` +Reorganizes imports into three distinct groups: -Forces the style of items inside an imports block. +1. `std`, `core`, and `alloc` +2. external crates +3. `self`, `super`, and `crate` imports ```rs -use foo::{xxxxxxxxxxxxxxxxxx, yyyyyyyyyyyyyyyyyy, zzzzzzzzzzzzzzzzzz}; +use alloc::alloc::Layout; +use core::f32; +use std::sync::Arc; -use foo::{ - aaaaaaaaaaaaaaaaaa, - bbbbbbbbbbbbbbbbbb, - cccccccccccccccccc, - dddddddddddddddddd, - eeeeeeeeeeeeeeeeee, - ffffffffffffffffff, -}; +use broker::database::PooledConnection; +use chrono::Utc; +use juniper::{FieldError, FieldResult}; +use uuid::Uuid; + +use super::schema::{Context, Payload}; +use super::update::convert_publish_payload; +use crate::models::Event; ``` ### `imports_granularity = "Crate"` @@ -60,27 +55,32 @@ use foo::{ use qux::{h, i}; ``` -### `group_imports = "StdExternalCrate"` - -Reorganizes imports into three distinct groups: +### `imports_layout = "HorizontalVertical"` -1. `std`, `core`, and `alloc` -2. external crates -3. `self`, `super`, and `crate` imports +Forces the style of items inside an imports block. ```rs -use alloc::alloc::Layout; -use core::f32; -use std::sync::Arc; +use foo::{xxxxxxxxxxxxxxxxxx, yyyyyyyyyyyyyyyyyy, zzzzzzzzzzzzzzzzzz}; -use broker::database::PooledConnection; -use chrono::Utc; -use juniper::{FieldError, FieldResult}; -use uuid::Uuid; +use foo::{ + aaaaaaaaaaaaaaaaaa, + bbbbbbbbbbbbbbbbbb, + cccccccccccccccccc, + dddddddddddddddddd, + eeeeeeeeeeeeeeeeee, + ffffffffffffffffff, +}; +``` -use super::schema::{Context, Payload}; -use super::update::convert_publish_payload; -use crate::models::Event; +### `reorder_imports = true` + +Ensures that imports and extern crate statements are sorted alphabetically (in groups). + +```rs +use dolor; +use ipsum; +use lorem; +use sit; ``` [mit]: LICENSE