mirror of
https://github.com/Universal-Debloater-Alliance/universal-android-debloater-next-generation.git
synced 2026-08-28 02:10:39 +02:00
perf(utils): 1 fmt in generate_backup_name
This commit is contained in:
parent
d0f190bf2a
commit
d10e4dcc3a
1 changed files with 2 additions and 1 deletions
|
|
@ -29,12 +29,13 @@ pub const EXPORT_FILE_NAME: &str = "selection_export.txt";
|
|||
clippy::needless_pass_by_value,
|
||||
reason = "Timestamps should be fresh, no need to borrow"
|
||||
)]
|
||||
#[must_use]
|
||||
pub fn generate_backup_name<T>(t: DateTime<T>) -> String
|
||||
where
|
||||
T: chrono::TimeZone,
|
||||
T::Offset: std::fmt::Display,
|
||||
{
|
||||
format!("uninstalled_packages_{}.csv", t.format("%Y%m%d"))
|
||||
t.format("uninstalled_packages_%Y%m%d.csv").to_string()
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue