File tree Expand file tree Collapse file tree 5 files changed +7
-8
lines changed
Expand file tree Collapse file tree 5 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 2121 contents : read
2222 packages : write
2323 steps :
24- - uses : actions/checkout@v4
24+ - uses : actions/checkout@v5
2525
2626 - name : Install Rust
2727 uses : dtolnay/rust-toolchain@stable
3535 - name : Install dependencies
3636 working-directory : /tmp
3737 run : |
38- wget https://musl.cc/aarch64-linux-musl-cross.tgz --quiet
38+ curl -LO https://musl.cc/aarch64-linux-musl-cross.tgz
3939 tar -xf aarch64-linux-musl-cross.tgz -C . && rm aarch64-linux-musl-cross.tgz
4040
4141 - name : Build Binary
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ version = "0.1.5"
88anyhow = " 1.0"
99chrono = " 0.4"
1010nanoid = " 0.4"
11- redb = " 2.6 "
11+ redb = " 3.0 "
1212serde = " 1.0"
1313url = " 2.5"
1414
Original file line number Diff line number Diff line change @@ -251,8 +251,7 @@ async fn main() {
251251 . extract_inner ( "pasty" )
252252 . expect ( "error loading configuration" ) ;
253253
254- let mut db = Database :: create ( config. db_path . clone ( ) ) . expect ( "error opening database" ) ;
255- db. upgrade ( ) . expect ( "error upgrading database" ) ;
254+ let db = Database :: create ( config. db_path . clone ( ) ) . expect ( "error opening database" ) ;
256255
257256 service:: ensure_table_exists ( & db) . expect ( "error ensuring table exists" ) ;
258257
Original file line number Diff line number Diff line change 11use std:: fmt:: Display ;
22
33use anyhow:: bail;
4- use redb:: Database ;
4+ use redb:: { Database , ReadableDatabase } ;
55use rocket:: State ;
66
77use crate :: * ;
You can’t perform that action at this time.
0 commit comments