From 245d8b92ece1c3100caa99dccb4ae15932f5513e Mon Sep 17 00:00:00 2001 From: Martin Geisler Date: Sat, 9 Sep 2023 18:42:54 +0200 Subject: [PATCH] Use module style Rust imports --- rustfmt.toml | 3 +++ src/markdown_deps.rs | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 rustfmt.toml diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100644 index 0000000..74a3a46 --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1,3 @@ +edition = "2018" +# https://github.com/rust-lang/rustfmt/issues/4991 +imports_granularity = "Module" diff --git a/src/markdown_deps.rs b/src/markdown_deps.rs index 035bb17..779d30b 100644 --- a/src/markdown_deps.rs +++ b/src/markdown_deps.rs @@ -1,5 +1,6 @@ #![cfg(feature = "markdown_deps_updated")] -use pulldown_cmark::{CodeBlockKind::Fenced, Event, Parser, Tag}; +use pulldown_cmark::CodeBlockKind::Fenced; +use pulldown_cmark::{Event, Parser, Tag}; use semver::{Version, VersionReq}; use toml::Value;