style: reorder imports and reformat code for consistency
This commit is contained in:
committed by
Andrew Phillips (aider)
parent
c936326ac3
commit
9feec61759
@@ -1,10 +1,9 @@
|
||||
|
||||
use anyhow::anyhow;
|
||||
|
||||
use clap::Command;
|
||||
use crate::compression::CompressionType;
|
||||
use std::str::FromStr;
|
||||
use clap::Command;
|
||||
use std::path::PathBuf;
|
||||
use std::str::FromStr;
|
||||
|
||||
pub fn mode_get(
|
||||
cmd: &mut Command,
|
||||
@@ -29,9 +28,9 @@ pub fn mode_get(
|
||||
let item_maybe = match tags.is_empty() && meta.is_empty() {
|
||||
true => match ids.iter().next() {
|
||||
Some(item_id) => crate::db::get_item(conn, *item_id)?,
|
||||
None => crate::db::get_item_last(conn)?
|
||||
None => crate::db::get_item_last(conn)?,
|
||||
},
|
||||
false => crate::db::get_item_matching(conn, tags, &meta)?
|
||||
false => crate::db::get_item_matching(conn, tags, &meta)?,
|
||||
};
|
||||
|
||||
if let Some(item) = item_maybe {
|
||||
|
||||
Reference in New Issue
Block a user