Skip to content

Commit 236189c

Browse files
committed
chore(deps): update
1 parent 8d0ca7f commit 236189c

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
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
@@ -35,7 +35,7 @@ jobs:
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

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ version = "0.1.5"
88
anyhow = "1.0"
99
chrono = "0.4"
1010
nanoid = "0.4"
11-
redb = "2.6"
11+
redb = "3.0"
1212
serde = "1.0"
1313
url = "2.5"
1414

src/main.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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

src/service.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::fmt::Display;
22

33
use anyhow::bail;
4-
use redb::Database;
4+
use redb::{Database, ReadableDatabase};
55
use rocket::State;
66

77
use crate::*;

0 commit comments

Comments
 (0)