Skip to content

Commit 8734f44

Browse files
committed
Check formatting
1 parent 3450891 commit 8734f44

File tree

6 files changed

+9
-7
lines changed

6 files changed

+9
-7
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ jobs:
2828
uses: dtolnay/rust-toolchain@stable
2929
with:
3030
toolchain: nightly-2025-04-15
31-
components: rust-src
31+
components: rust-src,rustfmt,clippy
32+
33+
- name: Check formatting
34+
run: cargo fmt --all --check
3235

3336
- name: Build
3437
run: |

crates/core/build.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
use std::process::Command;
22
fn main() {
33
// note: add error checking yourself.
4-
let output = Command::new("git").args(&["rev-parse", "HEAD"]).output().unwrap();
4+
let output = Command::new("git")
5+
.args(&["rev-parse", "HEAD"])
6+
.output()
7+
.unwrap();
58
let git_hash = String::from_utf8(output.stdout).unwrap();
69
println!("cargo:rustc-env=GIT_HASH={}", git_hash);
710
}

crates/core/src/ext.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use sqlite_nostd::{Connection, Destructor, ManagedStmt, ResultCode, sqlite3};
1+
use sqlite_nostd::{sqlite3, Connection, Destructor, ManagedStmt, ResultCode};
22

33
pub trait SafeManagedStmt {
44
fn exec(&self) -> Result<(), ResultCode>;
@@ -23,7 +23,6 @@ impl SafeManagedStmt for ManagedStmt {
2323
}
2424
}
2525

26-
2726
pub trait ExtendedDatabase {
2827
fn exec_text(&self, sql: &str, param: &str) -> Result<(), ResultCode>;
2928
}

crates/shell/build.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
fn main() {
32
let mut cfg = cc::Build::new();
43

crates/shell/src/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ fn panic(_info: &core::panic::PanicInfo) -> ! {
2828
#[lang = "eh_personality"]
2929
extern "C" fn eh_personality() {}
3030

31-
3231
#[no_mangle]
3332
pub extern "C" fn core_init(_dummy: *mut c_char) -> c_int {
3433
powersync_init_static()

crates/sqlite/src/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
#![no_main]
2-

0 commit comments

Comments
 (0)