mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-23 20:16:41 +02:00
refactor: Remove let-return to satisfy clippy
This commit is contained in:
parent
e8ca3e9cad
commit
64c5731ed8
1 changed files with 2 additions and 3 deletions
|
@ -249,7 +249,7 @@ impl<'a> Widget for Calendar<'a> {
|
|||
|
||||
impl<'a> Calendar<'a> {
|
||||
fn generate_month_names() -> [&'a str; 12] {
|
||||
let month_names = [
|
||||
[
|
||||
Month::January.name(),
|
||||
Month::February.name(),
|
||||
Month::March.name(),
|
||||
|
@ -262,7 +262,6 @@ impl<'a> Calendar<'a> {
|
|||
Month::October.name(),
|
||||
Month::November.name(),
|
||||
Month::December.name(),
|
||||
];
|
||||
month_names
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue