chore(web): clippy lints
This commit is contained in:
parent
0b6091e764
commit
bb6957e638
2 changed files with 3 additions and 5 deletions
|
@ -47,10 +47,7 @@ pub enum Privacy {
|
|||
|
||||
impl Privacy {
|
||||
pub fn is_public(&self) -> bool {
|
||||
match self {
|
||||
Self::Broadcast | Self::Public => true,
|
||||
_ => false,
|
||||
}
|
||||
matches!(self, Self::Broadcast | Self::Public)
|
||||
}
|
||||
|
||||
pub fn from_value(v: &str) -> Self {
|
||||
|
@ -429,6 +426,7 @@ fn get_vec_if_some(node: NodeRef<html::Input>) -> Vec<String> {
|
|||
).unwrap_or_default()
|
||||
}
|
||||
|
||||
#[allow(unused)]
|
||||
fn get_checked(node: NodeRef<html::Input>) -> bool {
|
||||
node.get()
|
||||
.map(|x| x.checked())
|
||||
|
|
|
@ -3,7 +3,7 @@ use std::sync::Arc;
|
|||
use leptos::*;
|
||||
use crate::{prelude::*, URL_SENSITIVE};
|
||||
|
||||
use apb::{target::Addressed, ActivityMut, Base, Collection, CollectionMut, Object, ObjectMut, Shortcuts};
|
||||
use apb::{ActivityMut, Base, Collection, CollectionMut, Object, ObjectMut, Shortcuts};
|
||||
|
||||
#[component]
|
||||
pub fn Object(object: crate::Object) -> impl IntoView {
|
||||
|
|
Loading…
Reference in a new issue