web: address lint
This commit is contained in:
parent
4faef5e017
commit
934cb9d91b
@ -307,7 +307,6 @@ pub fn update(msg: Msg, model: &mut Model, orders: &mut impl Orders<Msg>) {
|
|||||||
.map(|t| Tag {
|
.map(|t| Tag {
|
||||||
name: t.name,
|
name: t.name,
|
||||||
bg_color: t.bg_color,
|
bg_color: t.bg_color,
|
||||||
fg_color: t.fg_color,
|
|
||||||
unread: t.unread,
|
unread: t.unread,
|
||||||
})
|
})
|
||||||
.collect(),
|
.collect(),
|
||||||
@ -357,18 +356,13 @@ pub fn update(msg: Msg, model: &mut Model, orders: &mut impl Orders<Msg>) {
|
|||||||
.map(|t| Tag {
|
.map(|t| Tag {
|
||||||
name: t.name,
|
name: t.name,
|
||||||
bg_color: t.bg_color,
|
bg_color: t.bg_color,
|
||||||
fg_color: t.fg_color,
|
|
||||||
unread: t.unread,
|
unread: t.unread,
|
||||||
})
|
})
|
||||||
.collect(),
|
.collect(),
|
||||||
);
|
);
|
||||||
match &data.thread {
|
match &data.thread {
|
||||||
graphql::show_thread_query::ShowThreadQueryThread::EmailThread(
|
graphql::show_thread_query::ShowThreadQueryThread::EmailThread(
|
||||||
ShowThreadQueryThreadOnEmailThread {
|
ShowThreadQueryThreadOnEmailThread { messages, .. },
|
||||||
thread_id,
|
|
||||||
subject,
|
|
||||||
messages,
|
|
||||||
},
|
|
||||||
) => {
|
) => {
|
||||||
let mut open_messages: HashSet<_> = messages
|
let mut open_messages: HashSet<_> = messages
|
||||||
.iter()
|
.iter()
|
||||||
@ -555,7 +549,6 @@ pub enum Context {
|
|||||||
pub struct Tag {
|
pub struct Tag {
|
||||||
pub name: String,
|
pub name: String,
|
||||||
pub bg_color: String,
|
pub bg_color: String,
|
||||||
pub fg_color: String,
|
|
||||||
pub unread: i64,
|
pub unread: i64,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -604,6 +597,8 @@ pub enum Msg {
|
|||||||
SelectionSetNone,
|
SelectionSetNone,
|
||||||
SelectionSetAll,
|
SelectionSetAll,
|
||||||
SelectionAddTag(String),
|
SelectionAddTag(String),
|
||||||
|
#[allow(dead_code)]
|
||||||
|
// TODO
|
||||||
SelectionRemoveTag(String),
|
SelectionRemoveTag(String),
|
||||||
SelectionMarkAsRead,
|
SelectionMarkAsRead,
|
||||||
SelectionMarkAsUnread,
|
SelectionMarkAsUnread,
|
||||||
|
|||||||
@ -1,8 +1,7 @@
|
|||||||
use seed::{prelude::*, *};
|
use seed::{prelude::*, *};
|
||||||
use seed_hooks::{state_access::CloneState, topo, use_state};
|
use seed_hooks::topo;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
api::urls,
|
|
||||||
graphql::show_thread_query::*,
|
graphql::show_thread_query::*,
|
||||||
state::{Context, Model, Msg},
|
state::{Context, Model, Msg},
|
||||||
view::{self, reading_progress, view_header, view_search_results, view_tags},
|
view::{self, reading_progress, view_header, view_search_results, view_tags},
|
||||||
|
|||||||
@ -1028,7 +1028,6 @@ pub fn view_tags(model: &Model) -> Node<Msg> {
|
|||||||
&Tag {
|
&Tag {
|
||||||
name: parts[..i + 1].join("/"),
|
name: parts[..i + 1].join("/"),
|
||||||
bg_color: "#fff".to_string(),
|
bg_color: "#fff".to_string(),
|
||||||
fg_color: "#000".to_string(),
|
|
||||||
unread: 0,
|
unread: 0,
|
||||||
},
|
},
|
||||||
search_unread,
|
search_unread,
|
||||||
|
|||||||
@ -1,4 +1,3 @@
|
|||||||
use log::info;
|
|
||||||
use seed::{prelude::*, *};
|
use seed::{prelude::*, *};
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user