Rust 1.85.0 + Rust 2024 Edition (#68)
- Add `rust-toolchain.toml` - Refactor `flake` to consider `rust-toolchain.toml`, especially Rust version - `just`: Add run-sound command - Ignore sound files - Format
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
use clap::ValueEnum;
|
||||
use ratatui::symbols::shade;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use time::format_description;
|
||||
use time::OffsetDateTime;
|
||||
use time::format_description;
|
||||
|
||||
#[derive(
|
||||
Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, ValueEnum, Default, Serialize, Deserialize,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use crate::constants::APP_NAME;
|
||||
use color_eyre::eyre::{eyre, Result};
|
||||
use color_eyre::eyre::{Result, eyre};
|
||||
use directories::ProjectDirs;
|
||||
use std::fs;
|
||||
use std::path::PathBuf;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
use color_eyre::{
|
||||
eyre::{ensure, eyre},
|
||||
Report,
|
||||
eyre::{ensure, eyre},
|
||||
};
|
||||
use std::fmt;
|
||||
use std::time::Duration;
|
||||
|
||||
@@ -3,7 +3,7 @@ use futures::{Stream, StreamExt};
|
||||
use std::{pin::Pin, time::Duration};
|
||||
use tokio::sync::mpsc;
|
||||
use tokio::time::interval;
|
||||
use tokio_stream::{wrappers::IntervalStream, StreamMap};
|
||||
use tokio_stream::{StreamMap, wrappers::IntervalStream};
|
||||
|
||||
use crate::common::ClockTypeId;
|
||||
use crate::constants::{FPS_VALUE_MS, TICK_VALUE_MS};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use color_eyre::eyre::{eyre, Result};
|
||||
use color_eyre::eyre::{Result, eyre};
|
||||
use std::fs;
|
||||
use std::path::PathBuf;
|
||||
use tracing::level_filters::LevelFilter;
|
||||
|
||||
@@ -5,7 +5,7 @@ use crossterm::{
|
||||
cursor, execute,
|
||||
terminal::{EnterAlternateScreen, LeaveAlternateScreen},
|
||||
};
|
||||
use ratatui::{backend::CrosstermBackend, Terminal as RatatuiTerminal};
|
||||
use ratatui::{Terminal as RatatuiTerminal, backend::CrosstermBackend};
|
||||
|
||||
pub type Terminal = RatatuiTerminal<CrosstermBackend<io::Stdout>>;
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ use crate::{
|
||||
events::{AppEvent, AppEventTx},
|
||||
utils::center_horizontal,
|
||||
widgets::clock_elements::{
|
||||
Colon, Digit, Dot, COLON_WIDTH, DIGIT_HEIGHT, DIGIT_SPACE_WIDTH, DIGIT_WIDTH, DOT_WIDTH,
|
||||
COLON_WIDTH, Colon, DIGIT_HEIGHT, DIGIT_SPACE_WIDTH, DIGIT_WIDTH, DOT_WIDTH, Digit, Dot,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ use ratatui::{
|
||||
|
||||
use crate::{
|
||||
common::Style,
|
||||
widgets::clock_elements::{Colon, Digit, COLON_WIDTH, DIGIT_SPACE_WIDTH, DIGIT_WIDTH},
|
||||
widgets::clock_elements::{COLON_WIDTH, Colon, DIGIT_SPACE_WIDTH, DIGIT_WIDTH, Digit},
|
||||
};
|
||||
|
||||
use super::clock_elements::DIGIT_HEIGHT;
|
||||
|
||||
Reference in New Issue
Block a user