Skip to content

Commit b92068b

Browse files
committed
Update rust edition to 2024.
1 parent d4430a7 commit b92068b

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "makemake"
33
version = "2.2.1"
4-
edition = "2021"
4+
edition = "2024"
55
license-file = "LICENSE"
66
description = "Create and load folder templates."
77
homepage = "https://github.com/BonnyAD9/makemake-rs"

src/args.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
use std::{
22
borrow::Cow,
33
collections::HashMap,
4-
io::{stdout, IsTerminal},
4+
io::{IsTerminal, stdout},
55
};
66

7-
use pareg::{has_any_key, key_mval_arg, FromArg, Pareg, Result};
7+
use pareg::{FromArg, Pareg, Result, has_any_key, key_mval_arg};
88

99
/// Yes/No/Auto
1010
#[derive(FromArg, Clone, Copy, PartialEq, Eq)]

src/ast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use utf8_chars::BufReadCharsExt;
77

88
use crate::{
99
err::{Error, Result},
10-
maker::{expand, ExpandContext},
10+
maker::{ExpandContext, expand},
1111
writer::FakeWriter,
1212
};
1313

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use pareg::Pareg;
77
use std::{
88
borrow::Cow,
99
fs::{read_dir, remove_dir_all},
10-
io::{stderr, stdin, stdout, IsTerminal, Write},
10+
io::{IsTerminal, Write, stderr, stdin, stdout},
1111
mem,
1212
path::{Path, PathBuf},
1313
process::ExitCode,

src/maker.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use std::{
22
borrow::Cow,
33
collections::HashMap,
44
fmt::Write,
5-
fs::{self, create_dir_all, read_dir, read_link, File},
5+
fs::{self, File, create_dir_all, read_dir, read_link},
66
io::{BufReader, BufWriter},
77
os::unix::fs::symlink,
88
path::{Path, PathBuf},

0 commit comments

Comments
 (0)