Skip to content

Commit d1f208a

Browse files
committed
fix typos
1 parent c533f0f commit d1f208a

2 files changed

Lines changed: 6 additions & 9 deletions

File tree

  • crates/bindings-macro/src
  • tools/xtask-llm-benchmark/src/templates/rust/server/.cargo

crates/bindings-macro/src/table.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ impl IndexArg {
197197
});
198198
Ok(())
199199
})?;
200-
let accessor = accessor.ok_or_else(|| meta.error("missing index name, e.g. accessor = my_index"))?;
200+
let accessor = accessor.ok_or_else(|| meta.error("missing index accessor, e.g. `accessor = my_index`"))?;
201201
let kind = algo.ok_or_else(|| {
202202
meta.error(
203203
"missing index algorithm, e.g., `btree(columns = [col1, col2])`, \
@@ -296,12 +296,8 @@ impl IndexArg {
296296
});
297297
Ok(())
298298
})?;
299-
let kind = kind.ok_or_else(|| {
300-
syn::Error::new_spanned(
301-
&attr.meta,
302-
"must specify kind of index (`btree` , `direct`, `name` or `value`)",
303-
)
304-
})?;
299+
let kind =
300+
kind.ok_or_else(|| syn::Error::new_spanned(&attr.meta, "must specify kind of index (`btree` , `direct`)"))?;
305301

306302
// Default accessor = field name if not provided
307303
let accessor = accessor.unwrap_or_else(|| field.clone());
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[table(name =# .cargo/config.toml
1+
# .cargo/config.toml
22
[build]
33
rustflags = ["-C","debuginfo=0","-C","split-debuginfo=off"]
44

@@ -8,4 +8,5 @@ linker = "rust-lld.exe"
88

99
[target.wasm32-unknown-unknown]
1010
# wasm already uses wasm-ld; keep output lean
11-
rustflags = ["-C","debuginfo=0","-C","panic=abort"]
11+
rustflags = ["-C","debuginfo=0","-C","panic=abort"]
12+

0 commit comments

Comments
 (0)