Zero warnings on Windows and Linux, clippy included (W-02, L-02)
rustc and clippy are clean for the whole workspace, every target, on both. clippy --fix moved test modules last and took the shorter forms; long types got named aliases; ElyTree's form takes its title and button words as one pair. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c96d39a342
commit
9c9f9ab8f9
26 files changed
+73
-60
No files matched your search
@@ -155,8 +155,11 @@ pub fn install_as(locale: &'static str, cx: &mut App) {
|
||||
);
|
||||
}
|
||||
|
||||
/// Keys and messages of one language.
|
||||
type Catalog = Vec<(&'static str, &'static str)>;
|
||||
|
||||
/// The English and Chinese catalogs, every module's messages.
|
||||
fn catalogs() -> (Vec<(&'static str, &'static str)>, Vec<(&'static str, &'static str)>) {
|
||||
fn catalogs() -> (Catalog, Catalog) {
|
||||
let en: Vec<_> = EN
|
||||
.iter()
|
||||
.chain(office::EN)
|
||||
|
||||
@@ -18,10 +18,13 @@ use gpui::{AnyElement, App, Context, IntoElement, SharedString, WeakEntity};
|
||||
use super::window::SettingsView;
|
||||
use crate::i18n::text;
|
||||
|
||||
/// Each kind's size, and whether a clear waits.
|
||||
type Usage = Vec<(Kind, u64, bool)>;
|
||||
|
||||
/// Last read sizes and limits; a clear waiting or failed.
|
||||
#[derive(Default)]
|
||||
pub(crate) struct Storage {
|
||||
usage: Option<Result<Vec<(Kind, u64, bool)>, SharedString>>,
|
||||
usage: Option<Result<Usage, SharedString>>,
|
||||
limits: Option<Result<Limits, SharedString>>,
|
||||
/// A clear waiting for the user's yes.
|
||||
confirming: Option<Kind>,
|
||||
|
||||
Reference in new issue
Block a user