mirror of
https://github.com/starship/starship.git
synced 2026-06-22 02:02:12 +07:00
style: pedantic refactoring (#6771)
--------- Co-authored-by: daniel.eades <daniel.eades@seebyte.com>
This commit is contained in:
@@ -42,7 +42,7 @@ fn gen_presets_hook(mut file: &File) -> SdResult<()> {
|
||||
|
||||
writeln!(
|
||||
file,
|
||||
r#"
|
||||
r"
|
||||
use crate::print;
|
||||
|
||||
pub fn get_preset_list<'a>() -> &'a [print::Preset] {{
|
||||
@@ -57,7 +57,7 @@ pub fn get_preset_content(name: &str) -> &[u8] {{
|
||||
_ => unreachable!(),
|
||||
}}
|
||||
}}
|
||||
"#
|
||||
"
|
||||
)?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user