From 84ac80f1921afc243d71fd0caaa4f2838c294102 Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Mon, 29 Jul 2024 08:13:50 +1000 Subject: Reformat `use` declarations. The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options. --- src/librustdoc/scrape_examples.rs | 32 ++++++++++++-------------------- 1 file changed, 12 insertions(+), 20 deletions(-) (limited to 'src/librustdoc/scrape_examples.rs') diff --git a/src/librustdoc/scrape_examples.rs b/src/librustdoc/scrape_examples.rs index 5a595e03953..f001fb26b81 100644 --- a/src/librustdoc/scrape_examples.rs +++ b/src/librustdoc/scrape_examples.rs @@ -1,35 +1,27 @@ //! This module analyzes crates to find call sites that can serve as examples in the documentation. -use crate::clean; -use crate::config; -use crate::formats; -use crate::formats::renderer::FormatRenderer; -use crate::html::render::Context; +use std::fs; +use std::path::PathBuf; use rustc_data_structures::fx::FxHashMap; use rustc_errors::DiagCtxtHandle; -use rustc_hir::{ - self as hir, - intravisit::{self, Visitor}, -}; +use rustc_hir::intravisit::{self, Visitor}; +use rustc_hir::{self as hir}; use rustc_interface::interface; use rustc_macros::{Decodable, Encodable}; use rustc_middle::hir::map::Map; use rustc_middle::hir::nested_filter; use rustc_middle::ty::{self, TyCtxt}; -use rustc_serialize::{ - opaque::{FileEncoder, MemDecoder}, - Decodable, Encodable, -}; +use rustc_serialize::opaque::{FileEncoder, MemDecoder}; +use rustc_serialize::{Decodable, Encodable}; use rustc_session::getopts; -use rustc_span::{ - def_id::{CrateNum, DefPathHash, LOCAL_CRATE}, - edition::Edition, - BytePos, FileName, SourceFile, -}; +use rustc_span::def_id::{CrateNum, DefPathHash, LOCAL_CRATE}; +use rustc_span::edition::Edition; +use rustc_span::{BytePos, FileName, SourceFile}; -use std::fs; -use std::path::PathBuf; +use crate::formats::renderer::FormatRenderer; +use crate::html::render::Context; +use crate::{clean, config, formats}; #[derive(Debug, Clone)] pub(crate) struct ScrapeExamplesOptions { -- cgit 1.4.1-3-g733a5