Remove extraneous code
This commit is contained in:
parent
497144029e
commit
4a65ae2da0
1 changed files with 0 additions and 18 deletions
|
|
@ -6,21 +6,3 @@ pub struct Project {
|
||||||
pub percentage_completed: i32,
|
pub percentage_completed: i32,
|
||||||
pub archived: bool,
|
pub archived: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Project {
|
|
||||||
pub fn new(title: String) -> Self {
|
|
||||||
let now = std::time::SystemTime::now()
|
|
||||||
.duration_since(std::time::UNIX_EPOCH)
|
|
||||||
.unwrap()
|
|
||||||
.as_secs() as i64;
|
|
||||||
|
|
||||||
Self {
|
|
||||||
id: 0,
|
|
||||||
title,
|
|
||||||
created_time: now,
|
|
||||||
last_modified_time: now,
|
|
||||||
percentage_completed: 0,
|
|
||||||
archived: false,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue