automatic cargo CI changes
This commit is contained in:
parent
337f43a46b
commit
22fa06e2b6
|
@ -130,7 +130,7 @@ fn check_if_cat_exists(conn: &Connection, id: usize) -> anyhow::Result<bool> {
|
||||||
/// Returns the id of the color
|
/// Returns the id of the color
|
||||||
fn new_color(conn: &Connection, color: &str) -> anyhow::Result<usize> {
|
fn new_color(conn: &Connection, color: &str) -> anyhow::Result<usize> {
|
||||||
if check_if_color_exists(conn, color)? {
|
if check_if_color_exists(conn, color)? {
|
||||||
return Ok(get_color_id(conn, color)?);
|
return get_color_id(conn, color);
|
||||||
}
|
}
|
||||||
|
|
||||||
conn.execute(
|
conn.execute(
|
||||||
|
@ -138,7 +138,7 @@ fn new_color(conn: &Connection, color: &str) -> anyhow::Result<usize> {
|
||||||
[color.to_string()],
|
[color.to_string()],
|
||||||
)?;
|
)?;
|
||||||
|
|
||||||
Ok(get_color_id(conn, color)?)
|
get_color_id(conn, color)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_color_id(conn: &Connection, color: &str) -> anyhow::Result<usize> {
|
fn get_color_id(conn: &Connection, color: &str) -> anyhow::Result<usize> {
|
||||||
|
|
Loading…
Reference in New Issue