mirror of
https://gitlab.gnome.org/World/Authenticator.git
synced 2025-03-04 00:34:40 +01:00
Fix new clippy warnings
This commit is contained in:
parent
9fbc2ff78d
commit
e83293f85c
2 changed files with 4 additions and 4 deletions
|
@ -89,7 +89,7 @@ impl Aegis {
|
|||
|
||||
// We only support password encrypted database so far so we don't have to do any
|
||||
// checks for the slot type
|
||||
let mut password_slot = &mut header.slots.as_mut().unwrap().get_mut(0).unwrap();
|
||||
let password_slot = &mut header.slots.as_mut().unwrap().get_mut(0).unwrap();
|
||||
// Derive key from given password
|
||||
let mut derived_key: [u8; 32] = [0u8; 32];
|
||||
let params = scrypt::Params::new(
|
||||
|
|
|
@ -179,7 +179,7 @@ impl CameraPaintable {
|
|||
};
|
||||
imp.sink_paintable.replace(Some(paintable));
|
||||
|
||||
pipeline.add_many(&[
|
||||
pipeline.add_many([
|
||||
pipewire_src,
|
||||
&tee,
|
||||
&queue1,
|
||||
|
@ -191,9 +191,9 @@ impl CameraPaintable {
|
|||
&sink,
|
||||
])?;
|
||||
|
||||
gst::Element::link_many(&[pipewire_src, &tee, &queue1, &videoconvert, &zbar, &fakesink])?;
|
||||
gst::Element::link_many([pipewire_src, &tee, &queue1, &videoconvert, &zbar, &fakesink])?;
|
||||
tee.link_pads(None, &queue2, None)?;
|
||||
gst::Element::link_many(&[&queue2, &videoflip, &sink])?;
|
||||
gst::Element::link_many([&queue2, &videoflip, &sink])?;
|
||||
|
||||
let bus = pipeline.bus().unwrap();
|
||||
let guard = bus.add_watch_local(
|
||||
|
|
Loading…
Add table
Reference in a new issue