Lint the shit out of the project.
This commit is contained in:
1 parent
920ab5d188
commit
af11915a52
9 files changed
+92
-61
No files matched your search
@@ -4,7 +4,6 @@ use serde::Serialize;
|
||||
use crate::db::_external_id::{Id, SecurityId};
|
||||
use crate::util::{CustomResult, Error};
|
||||
|
||||
|
||||
#[derive(Debug, Serialize, PartialEq)]
|
||||
pub enum SecurityType {
|
||||
Currency,
|
||||
@@ -77,7 +76,8 @@ pub fn get_security_by_id(tx: &Transaction, id: i32) -> CustomResult<Security> {
|
||||
let q = "SELECT id AS sec_id, security_type AS sec_security_type, symbol AS sec_symbol
|
||||
FROM securities
|
||||
WHERE id = ?1";
|
||||
tx.query_row(q, params![id], Security::from_row).map_err(Error::SqlError)
|
||||
tx.query_row(q, params![id], Security::from_row)
|
||||
.map_err(Error::SqlError)
|
||||
}
|
||||
|
||||
pub fn list_securities(conn: &Connection) -> CustomResult<Vec<Security>> {
|
||||
|
||||
Reference in new issue
Block a user