Skip to content

Commit efe2172

Browse files
authored
Merge pull request #1773 from ehuss/mdbook-spec-2024
Update tools to Rust 2024
2 parents b718b6b + d01bedd commit efe2172

File tree

6 files changed

+10
-9
lines changed

6 files changed

+10
-9
lines changed

mdbook-spec/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "mdbook-spec"
33
version = "0.1.2"
4-
edition = "2021"
4+
edition = "2024"
55
license = "MIT OR Apache-2.0"
66
description = "An mdBook preprocessor to help with the Rust specification."
77
repository = "https://github.com/rust-lang/spec/"

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"

style-check/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "style-check"
33
version = "0.1.0"
44
authors = ["steveklabnik <[email protected]>"]
5-
edition = "2021"
5+
edition = "2024"
66

77
[dependencies]
88
pulldown-cmark = "0.10.0"

0 commit comments

Comments
 (0)