Commit Graph

21 Commits

Author SHA1 Message Date
81d3563de7
Finally add a README 2022-04-26 06:42:07 +07:00
cefa7d5451 Merge pull request 'Resolve clippy warnings' (#3) from nicoo/freefall-updater:clippy into master
Reviewed-on: #3
2022-02-13 19:07:50 +00:00
f7d6f861b5 main::save_page_img: Take a Path, not PathBuf 2022-02-13 18:34:54 +01:00
cf3c01fef8 main: Pass a char to str::strip_suffix
This is theoretically slightly more efficient than passing a `str`.
2022-02-13 18:33:56 +01:00
abd66f75f9 main: Make once_cells be static, not const
Otherwise, each reference to the cell results in a new object,
defeating the point of lazy initialisation.
2022-02-13 18:31:38 +01:00
2f055d7466 freefall: Remove implicit 'static lifetime 2022-02-13 18:28:38 +01:00
d941b6190a Merge pull request 'main: Minor refactors around {read_from, save_to}_file' (#2) from nicoo/freefall-updater:read_write_dir into master
Reviewed-on: #2
2022-02-13 17:16:29 +00:00
47b228fa25 Merge pull request 'Port to once_cell' (#1) from nicoo/freefall-updater:once_cell into master
Reviewed-on: #1
2022-02-13 17:16:20 +00:00
bc7c4a1bee freefall: Replace hand-rolled match w/ Option::ok_or_else and ? 2022-02-13 18:05:36 +01:00
ddf8379ece Drop (direct) dependency on lazy_static 2022-02-13 17:27:28 +01:00
aed94b9738 freefall: Port to once_cell (from lazy_static) 2022-02-13 17:23:17 +01:00
e536f0667c main: Extract dynamic directory to a constant
This is hopefully more maintenable, and will make configurable directories doable  ^^'
2022-02-13 17:11:45 +01:00
9bc0828035 main: Refactor {read_from, save_to}_file error contexts
Add path context in those helper functions, rather than all callsites.
2022-02-13 17:11:45 +01:00
a31ad1a2fd main: extract static directory to a constant, avoid copying 2022-02-13 17:11:45 +01:00
763d2ded6a .gitignore data directories 2022-02-13 17:10:58 +01:00
d92c06ff47 Run cargo fmt 2022-02-13 15:16:58 +01:00
19757e0b87
Clean up clippy warnings 2021-06-21 15:42:19 +07:00
d88b784e2b
Fix and clean up title saving 2021-06-10 11:39:54 +07:00
21ef655c1b
Add last checked data 2021-05-14 17:42:13 +07:00
ea64d66fe5
First minimal viable build 2021-05-13 21:32:11 +07:00
c4afb89733
Create initial prototype 2021-05-11 20:51:34 +07:00