Skip to content

Commit cf908d9

Browse files
committed
Update code/fix warnings for Rust 1.83
1 parent b0a0cbb commit cf908d9

File tree

399 files changed

+573
-594
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

399 files changed

+573
-594
lines changed

Cargo.lock

Lines changed: 4 additions & 4 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
@@ -191,7 +191,7 @@ pretty_assertions = "1.4"
191191
proc-macro2 = "1.0"
192192
prometheus = "0.13.0"
193193
proptest = "1.4"
194-
proptest-derive = "0.4"
194+
proptest-derive = "0.5"
195195
quick-junit = { version = "0.3.2" }
196196
quote = "1.0.8"
197197
rand = "0.8.5"

crates/bindings-macro/src/table.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ impl IndexArg {
160160
Ok(IndexArg { kind, name })
161161
}
162162

163-
fn validate<'a>(&'a self, table_name: &str, cols: &'a [Column<'a>]) -> syn::Result<ValidatedIndex<'_>> {
163+
fn validate<'a>(&'a self, table_name: &str, cols: &'a [Column<'a>]) -> syn::Result<ValidatedIndex<'a>> {
164164
let find_column = |ident| {
165165
cols.iter()
166166
.find(|col| col.field.ident == Some(ident))

crates/bindings-sys/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ pub mod raw {
108108
/// - `prefix = prefix_ptr[..prefix_len]`,
109109
/// - `rstart = rstart_ptr[..rstart_len]`,
110110
/// - `rend = rend_ptr[..rend_len]`,
111+
///
111112
/// in WASM memory.
112113
///
113114
/// The index itself has a schema/type.
@@ -182,6 +183,7 @@ pub mod raw {
182183
/// - `prefix = prefix_ptr[..prefix_len]`,
183184
/// - `rstart = rstart_ptr[..rstart_len]`,
184185
/// - `rend = rend_ptr[..rend_len]`,
186+
///
185187
/// in WASM memory.
186188
///
187189
/// This syscall will delete all the rows found by

crates/bindings/src/logger.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ extern "C" fn __preinit__00_panic_hook() {
1111
}
1212

1313
/// Our own panic hook logging to the console.
14-
fn panic_hook(info: &panic::PanicInfo) {
14+
fn panic_hook(info: &panic::PanicHookInfo) {
1515
// Try to look into some string types we know (`&'static str` and `String`).
1616
let msg = match info.payload().downcast_ref::<&'static str>() {
1717
Some(s) => *s,

crates/cli/src/subcommands/generate/rust.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ pub fn type_name(module: &ModuleDef, ty: &AlgebraicTypeUse) -> String {
621621
s
622622
}
623623

624-
const ALLOW_UNUSED: &str = "#![allow(unused)]";
624+
const ALLOW_LINTS: &str = "#![allow(unused, clippy::all)]";
625625

626626
const SPACETIMEDB_IMPORTS: &[&str] = &[
627627
"use spacetimedb_sdk::__codegen::{",
@@ -639,7 +639,7 @@ fn print_spacetimedb_imports(output: &mut Indenter) {
639639

640640
fn print_file_header(output: &mut Indenter) {
641641
print_auto_generated_file_comment(output);
642-
write!(output, "{ALLOW_UNUSED}");
642+
writeln!(output, "{ALLOW_LINTS}");
643643
print_spacetimedb_imports(output);
644644
}
645645

0 commit comments

Comments
 (0)