Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
aumetra committed Dec 18, 2024
1 parent 6e4a96f commit 6d47432
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 46 deletions.
82 changes: 41 additions & 41 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ hyper-util = { version = "0.1.10", features = [
"http2",
"tokio",
] }
hyper-rustls = { version = "0.27.3", default-features = false, features = [
hyper-rustls = { version = "0.27.4", default-features = false, features = [
"http1",
"http2",
"logging",
Expand Down Expand Up @@ -308,7 +308,7 @@ subtle = "2.6.1"
syn = { version = "2.0.90", features = ["full"] }
sync_wrapper = "1.0.2"
tempfile = "3.14.0"
thiserror = "2.0.7"
thiserror = "2.0.8"
time = "0.3.37"
tokio = { version = "1.42.0", features = ["full"] }
tokio-postgres = "0.7.12"
Expand Down Expand Up @@ -350,8 +350,8 @@ urlencoding = "2.1.3"
uuid = { version = "1.11.0", features = ["fast-rng", "v7"] }
uuid-simd = { version = "0.8.0", features = ["uuid"] }
walkdir = "2.5.0"
wasm-encoder = "0.221.2"
wasmparser = "0.221.2"
wasm-encoder = "0.222.0"
wasmparser = "0.222.0"
wasmtime = { version = "27.0.0", default-features = false, features = [
"addr2line",
"async",
Expand All @@ -362,7 +362,7 @@ wasmtime = { version = "27.0.0", default-features = false, features = [
"runtime",
] }
wasmtime-wasi = { version = "27.0.0", default-features = false }
wat = "1.221.2"
wat = "1.222.0"
whatlang = "0.16.4"
whichlang = "0.1.0"
wit-bindgen = "0.36.0"
Expand Down
9 changes: 9 additions & 0 deletions lib/komainu/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,12 @@ impl Error {
Self::Query(err.into())
}
}

macro_rules! ensure {
($cond:expr, $err:expr) => {{
if !{ $cond } {
return Err($err);
}
}};
}
pub(crate) use ensure;

0 comments on commit 6d47432

Please sign in to comment.