mirror of
https://gitlab.gnome.org/World/Authenticator.git
synced 2025-03-04 08:44:40 +01:00
few clippy fixes
This commit is contained in:
parent
608d94b043
commit
6cf83c4076
5 changed files with 4 additions and 1 deletions
|
@ -330,6 +330,7 @@ impl Provider {
|
|||
Ok(results)
|
||||
}
|
||||
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
pub fn new(
|
||||
id: i32,
|
||||
name: &str,
|
||||
|
|
|
@ -62,6 +62,7 @@ impl ProvidersModel {
|
|||
model
|
||||
}
|
||||
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
pub fn find_or_create(
|
||||
&self,
|
||||
name: &str,
|
||||
|
|
|
@ -121,6 +121,7 @@ glib_wrapper! {
|
|||
pub struct ProviderImage(ObjectSubclass<imp::ProviderImage>) @extends gtk::Widget, gtk::Box;
|
||||
}
|
||||
impl ProviderImage {
|
||||
#[allow(clippy::new_without_default)]
|
||||
pub fn new() -> Self {
|
||||
glib::Object::new(Self::static_type(), &[])
|
||||
.expect("Failed to create ProviderImage")
|
||||
|
|
|
@ -68,6 +68,7 @@ glib_wrapper! {
|
|||
pub struct ProvidersList(ObjectSubclass<imp::ProvidersList>) @extends gtk::Widget, gtk::Box;
|
||||
}
|
||||
impl ProvidersList {
|
||||
#[allow(clippy::new_without_default)]
|
||||
pub fn new() -> Self {
|
||||
glib::Object::new(Self::static_type(), &[])
|
||||
.expect("Failed to create ProvidersList")
|
||||
|
|
|
@ -163,7 +163,6 @@ impl ProviderRow {
|
|||
|
||||
fn tick(&self) {
|
||||
let self_ = imp::ProviderRow::from_instance(self);
|
||||
let max = self.provider().period() as f64;
|
||||
let started_at = self_.started_at.borrow().clone().unwrap();
|
||||
let remaining_time = started_at.elapsed().as_secs();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue