Update to rust 2021
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
##################
|
##################
|
||||||
### BASE STAGE ###
|
### BASE STAGE ###
|
||||||
##################
|
##################
|
||||||
FROM rust:1.53 as base
|
FROM rust:1.56 as base
|
||||||
|
|
||||||
# Install build dependencies
|
# Install build dependencies
|
||||||
RUN cargo install strip_cargo_version
|
RUN cargo install strip_cargo_version
|
||||||
|
|||||||
@ -3,7 +3,7 @@ name = "stl_cli"
|
|||||||
version = "2.6.7"
|
version = "2.6.7"
|
||||||
authors = ["Joakim Hulthe <joakim@hulthe.net>"]
|
authors = ["Joakim Hulthe <joakim@hulthe.net>"]
|
||||||
license = "MPL-2.0"
|
license = "MPL-2.0"
|
||||||
edition = "2018"
|
edition = "2021"
|
||||||
|
|
||||||
[[bin]]
|
[[bin]]
|
||||||
name = "stl"
|
name = "stl"
|
||||||
|
|||||||
@ -3,7 +3,7 @@ name = "stl_lib"
|
|||||||
version = "2.6.7"
|
version = "2.6.7"
|
||||||
authors = ["Joakim Hulthe <joakim@hulthe.net>"]
|
authors = ["Joakim Hulthe <joakim@hulthe.net>"]
|
||||||
license = "MPL-2.0"
|
license = "MPL-2.0"
|
||||||
edition = "2018"
|
edition = "2021"
|
||||||
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|||||||
@ -4,7 +4,7 @@ description = "studielogg aka scuffed toggl"
|
|||||||
version = "2.6.7"
|
version = "2.6.7"
|
||||||
authors = ["Joakim Hulthe <joakim@hulthe.net>"]
|
authors = ["Joakim Hulthe <joakim@hulthe.net>"]
|
||||||
license = "MPL-2.0"
|
license = "MPL-2.0"
|
||||||
edition = "2018"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
dotenv = "0.13.0"
|
dotenv = "0.13.0"
|
||||||
|
|||||||
@ -101,7 +101,7 @@ pub fn set_parent(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// this also makes sure that parent exists
|
// this also makes sure that parent exists
|
||||||
let parent = category::get(&categories_tree, &&next_parent_id)?;
|
let parent = category::get(&categories_tree, &next_parent_id)?;
|
||||||
|
|
||||||
match parent.parent {
|
match parent.parent {
|
||||||
Some(grandparent_id) => next_parent_id = grandparent_id,
|
Some(grandparent_id) => next_parent_id = grandparent_id,
|
||||||
|
|||||||
Reference in New Issue
Block a user