Skip to content

Commit 3238acc

Browse files
committed
Auto merge of #125443 - nnethercote:rustfmt-use-decls, r=lcnr,cuviper,GuillaumeGomez
rustfmt `use` declarations This PR implements rust-lang/compiler-team#750, which changes how `use` declarations are formatted by adding these options to `rustfmt.toml`: ``` group_imports = "StdExternalCrate" imports_granularity = "Module" ``` r? `@ghost`
2 parents fa7ed8a + 4581e7c commit 3238acc

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,12 +279,12 @@
279279
#![feature(rustdoc_internals)]
280280
// tidy-alphabetical-end
281281

282-
use LabelText::*;
283-
284282
use std::borrow::Cow;
285283
use std::io;
286284
use std::io::prelude::*;
287285

286+
use LabelText::*;
287+
288288
/// The text for a graphviz label on a node or edge.
289289
pub enum LabelText<'a> {
290290
/// This kind of label preserves the text directly as is.

src/tests.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
use super::LabelText::{self, EscStr, HtmlStr, LabelStr};
2-
use super::{render, Edges, GraphWalk, Id, Labeller, Nodes, Style};
31
use std::io;
42
use std::io::prelude::*;
3+
54
use NodeLabels::*;
65

6+
use super::LabelText::{self, EscStr, HtmlStr, LabelStr};
7+
use super::{render, Edges, GraphWalk, Id, Labeller, Nodes, Style};
8+
79
/// each node is an index in a vector in the graph.
810
type Node = usize;
911
struct Edge {

0 commit comments

Comments
 (0)