File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ pub fn create(path: impl AsRef<std::path::Path>) -> anyhow::Result<rusqlite::Con
118
118
CREATE TABLE if not exists task(
119
119
id integer PRIMARY KEY,
120
120
short_name UNIQUE, -- the unique and permanent identifier for the task
121
- description text UNIQUE -- the descriptive name of the task, it can be changed at will
121
+ description text UNIQUE -- the descriptive name of the task, it can be changed at will
122
122
)
123
123
"# ,
124
124
) ?;
@@ -148,8 +148,9 @@ pub fn create(path: impl AsRef<std::path::Path>) -> anyhow::Result<rusqlite::Con
148
148
/// Utilities
149
149
impl Engine {
150
150
pub ( crate ) fn runner_id_or_insert ( & self ) -> anyhow:: Result < Id > {
151
- let sys =
152
- sysinfo:: System :: new_with_specifics ( RefreshKind :: new ( ) . with_cpu ( CpuRefreshKind :: new ( ) . with_frequency ( ) ) ) ;
151
+ let sys = sysinfo:: System :: new_with_specifics (
152
+ RefreshKind :: nothing ( ) . with_cpu ( CpuRefreshKind :: new ( ) . with_frequency ( ) ) ,
153
+ ) ;
153
154
let cpu = & sys. cpus ( ) [ 0 ] ;
154
155
let vendor = Some ( cpu. vendor_id ( ) . to_owned ( ) ) ;
155
156
let host = sysinfo:: System :: host_name ( ) ;
You can’t perform that action at this time.
0 commit comments