Skip to content

Commit 7857573

Browse files
committed
Rustfmt mdbook-spec for Rust 2024
1 parent 9c4bcca commit 7857573

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

mdbook-spec/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#![deny(rust_2018_idioms, unused_lifetimes)]
22

33
use crate::rules::Rules;
4-
use anyhow::{bail, Context, Result};
4+
use anyhow::{Context, Result, bail};
5+
use mdbook::BookItem;
56
use mdbook::book::{Book, Chapter};
67
use mdbook::errors::Error;
78
use mdbook::preprocess::{CmdPreprocessor, Preprocessor, PreprocessorContext};
8-
use mdbook::BookItem;
99
use once_cell::sync::Lazy;
1010
use regex::{Captures, Regex};
1111
use semver::{Version, VersionReq};

mdbook-spec/src/rules.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
//! Handling for rule identifiers.
22
33
use crate::test_links::RuleToTests;
4-
use crate::{warn_or_err, Diagnostics, Spec};
5-
use mdbook::book::Book;
4+
use crate::{Diagnostics, Spec, warn_or_err};
65
use mdbook::BookItem;
6+
use mdbook::book::Book;
77
use once_cell::sync::Lazy;
88
use regex::{Captures, Regex};
99
use std::collections::{BTreeMap, HashSet};

mdbook-spec/src/std_links.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
//! Support for translating links to the standard library.
22
3-
use crate::{bug, warn_or_err, Diagnostics};
4-
use anyhow::{bail, Result};
5-
use mdbook::book::{Book, Chapter};
3+
use crate::{Diagnostics, bug, warn_or_err};
4+
use anyhow::{Result, bail};
65
use mdbook::BookItem;
6+
use mdbook::book::{Book, Chapter};
77
use once_cell::sync::Lazy;
88
use pulldown_cmark::{BrokenLink, CowStr, Event, LinkType, Options, Parser, Tag};
99
use regex::Regex;

rustfmt.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
style_edition = "2024"

0 commit comments

Comments
 (0)