fix(replace): no error returned when holder not found

This commit is contained in:
b1n
2024-07-15 20:17:39 +08:00
parent 2a134082e5
commit 1b8f8fd8da
5 changed files with 31 additions and 25 deletions

View File

@@ -1,15 +1,13 @@
fn build_capnp() {
capnpc::CompilerCommand::new()
.src_prefix("capnp")
.file("capnp/plugin.capnp")
.output_path("capnp")
.run()
.expect("schema compiler command");
}
fn main() {
#[cfg(debug_assertions)]
build_capnp();
{
capnpc::CompilerCommand::new()
.src_prefix("capnp")
.file("capnp/plugin.capnp")
.output_path("capnp")
.run()
.expect("schema compiler command");
}
#[cfg(target_os = "windows")]
{