Skip to content

Support linebroken import lists #788

Closed
@bluss

Description

@bluss

rustfmt wanted to make this change (and many larger, just like this). I'd like to have an option to _not do_ this, to preserve the list formatting, with trailing comma, so that the code is easy to read and edit.

@@ -1,22 +1,19 @@
 use std::fmt;
-use super::{
-    ArrayBase,
-    Data,
-    Dimension,
-};
+use super::{ArrayBase, Data, Dimension};


@@ -87,14 +80,8 @@ pub use stride_error::StrideError;
 pub use si::{Si, S};

 use iterators::Baseiter;
-pub use iterators::{
-    InnerIter,
-    InnerIterMut,
-    OuterIter,
-    OuterIterMut,
-    AxisChunksIter,
-    AxisChunksIterMut,
-};
+pub use iterators::{InnerIter, InnerIterMut, OuterIter, OuterIterMut,
+                    AxisChunksIter, AxisChunksIterMut};

If you're curious, these are my settings:

ideal_width = 80
max_width = 85
fn_call_width = 80
fn_return_indent = "WithWhereClause"
fn_args_density = "Compressed"
normalise_comments = false
where_density = "Tall"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions