mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 19:41:15 -03:00
style: change rustfmt edition to 2024
This commit adds `style_edition = "2024"` as a rustfmt config setting. All other changes are automatically generated by `cargo fmt`. The 2024 style edition fixes several bugs and changes some defaults. https://doc.rust-lang.org/edition-guide/rust-2024/rustfmt-style-edition.html Most of the changes made to our code result from a different sorting method for `use` statements, improved ability to split long lines, and contraction of short trailing expressions into single-line expressions. While our MSRV is still 1.70, we use more recent toolchains for development, so we can already benefit from the improvements of the new style edition. Formatting is not require for building fish, so builds with Rust 1.70 are not affected by this change. More context can be found at https://github.com/fish-shell/fish-shell/issues/11630#issuecomment-3406937077 Closes #11959
This commit is contained in:
committed by
Johannes Altmanninger
parent
1c3a6a463d
commit
43f8d7478e
@@ -4,9 +4,9 @@
|
||||
|
||||
mod fmt_fp;
|
||||
mod printf_impl;
|
||||
pub use printf_impl::{sprintf_locale, Error, FormatString};
|
||||
pub use printf_impl::{Error, FormatString, sprintf_locale};
|
||||
pub mod locale;
|
||||
pub use locale::{Locale, C_LOCALE, EN_US_LOCALE};
|
||||
pub use locale::{C_LOCALE, EN_US_LOCALE, Locale};
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests;
|
||||
|
||||
Reference in New Issue
Block a user