Skip to content

Commit f197a64

Browse files
mamcxgefjon
andcommitted
Apply suggestions from code review
Co-authored-by: Phoebe Goldman <[email protected]> Signed-off-by: Mario Montoya <[email protected]>
1 parent c16841a commit f197a64

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -1317,7 +1317,7 @@ impl DbConnection {{
13171317
/// Returns an error if the connection is disconnected.
13181318
/// If the disconnection in question was normal,
13191319
/// i.e. the result of a call to [`__sdk::DbContext::disconnect`],
1320-
/// the returned error will be downcastable to [`__sdk::DisconnectedError`].
1320+
/// the returned error will be downcastable to [`__sdk::Error::Disconnected`].
13211321
///
13221322
/// This is a low-level primitive exposed for power users who need significant control over scheduling.
13231323
/// Most applications should call [`Self::frame_tick`] each frame
@@ -1331,7 +1331,7 @@ impl DbConnection {{
13311331
/// Returns an error if the connection is disconnected.
13321332
/// If the disconnection in question was normal,
13331333
/// i.e. the result of a call to [`__sdk::DbContext::disconnect`],
1334-
/// the returned error will be downcastable to [`__sdk::DisconnectedError`].
1334+
/// the returned error will be downcastable to [`__sdk::Error::Disconnected`].
13351335
///
13361336
/// This is a low-level primitive exposed for power users who need significant control over scheduling.
13371337
/// Most applications should call [`Self::run_threaded`] to spawn a thread
@@ -1345,7 +1345,7 @@ impl DbConnection {{
13451345
/// Returns an error if the connection is disconnected.
13461346
/// If the disconnection in question was normal,
13471347
/// i.e. the result of a call to [`__sdk::DbContext::disconnect`],
1348-
/// the returned error will be downcastable to [`__sdk::DisconnectedError`].
1348+
/// the returned error will be downcastable to [`__sdk::Error::Disconnected`].
13491349
///
13501350
/// This is a low-level primitive exposed for power users who need significant control over scheduling.
13511351
/// Most applications should call [`Self::run_async`] to run an `async` loop

crates/cli/src/subcommands/subscribe.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ where
198198
ws.send(msg.into()).await
199199
}
200200

201-
/// Await the initial [`ws::ServerMessage::TransactionUpdateLight`] `|` [`ws::ServerMessage::TransactionUpdate`].
201+
/// Await the initial [`ws::ServerMessage::SubscriptionUpdate`].
202202
/// If `module_def` is `Some`, print a JSON representation to stdout.
203203
async fn await_initial_update<S>(ws: &mut S, module_def: Option<&RawModuleDefV9>) -> anyhow::Result<()>
204204
where
@@ -232,7 +232,7 @@ where
232232
Ok(())
233233
}
234234

235-
/// Print `num` [`ws::ServerMessage::TransactionUpdateLight`] `|` [`ws::ServerMessage::TransactionUpdate`] messages as JSON.
235+
/// Print `num` [`ws::ServerMessage::TransactionUpdateLight`] or [`ws::ServerMessage::TransactionUpdate`] messages as JSON.
236236
/// If `num` is `None`, keep going indefinitely.
237237
async fn consume_transaction_updates<S>(
238238
ws: &mut S,

crates/cli/tests/snapshots/codegen__codegen_rust.snap

+3-3
Original file line numberDiff line numberDiff line change
@@ -1803,7 +1803,7 @@ impl DbConnection {
18031803
/// Returns an error if the connection is disconnected.
18041804
/// If the disconnection in question was normal,
18051805
/// i.e. the result of a call to [`__sdk::DbContext::disconnect`],
1806-
/// the returned error will be downcastable to [`__sdk::DisconnectedError`].
1806+
/// the returned error will be downcastable to [`__sdk::Error::Disconnected`].
18071807
///
18081808
/// This is a low-level primitive exposed for power users who need significant control over scheduling.
18091809
/// Most applications should call [`Self::frame_tick`] each frame
@@ -1817,7 +1817,7 @@ impl DbConnection {
18171817
/// Returns an error if the connection is disconnected.
18181818
/// If the disconnection in question was normal,
18191819
/// i.e. the result of a call to [`__sdk::DbContext::disconnect`],
1820-
/// the returned error will be downcastable to [`__sdk::DisconnectedError`].
1820+
/// the returned error will be downcastable to [`__sdk::Error::Disconnected`].
18211821
///
18221822
/// This is a low-level primitive exposed for power users who need significant control over scheduling.
18231823
/// Most applications should call [`Self::run_threaded`] to spawn a thread
@@ -1831,7 +1831,7 @@ impl DbConnection {
18311831
/// Returns an error if the connection is disconnected.
18321832
/// If the disconnection in question was normal,
18331833
/// i.e. the result of a call to [`__sdk::DbContext::disconnect`],
1834-
/// the returned error will be downcastable to [`__sdk::DisconnectedError`].
1834+
/// the returned error will be downcastable to [`__sdk::Error::Disconnected`].
18351835
///
18361836
/// This is a low-level primitive exposed for power users who need significant control over scheduling.
18371837
/// Most applications should call [`Self::run_async`] to run an `async` loop

crates/core/src/host/wasm_common/instrumentation.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
//! `noop` does nothing.
1515
//! `op` uses `std::time::Instant` and `std::time::Duration` to capture timings.
1616
//! Components which use the time-span interface will conditionally import one of the two modules, like:
17-
//! ```no_run
18-
//! #[cfg(feature = "spacetimedb-wasm-instance-times)]
17+
//! ```no-run
18+
//! #[cfg(feature = "spacetimedb-wasm-instance-times")]
1919
//! use instrumentation::op as span;
20-
//! #[cfg(not(feature = "spacetimedb-wasm-instance-times)]
20+
//! #[cfg(not(feature = "spacetimedb-wasm-instance-times"))]
2121
//! use instrumentation::noop as span;
2222
//! ```
2323

crates/sdk/tests/connect_disconnect_client/src/module_bindings/mod.rs

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/sdk/tests/test-client/src/module_bindings/mod.rs

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/table/src/read_column.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ pub unsafe trait ReadColumn: Sized {
9898
/// A few highlights are included here:
9999
///
100100
/// - Variable-length columns, i.e. `AlgebraicType::String`, `AlgebraicType::Array` and `AlgebraicType::Map`
101-
/// are stored within the row as [`crate::var_len::VarLenRef`]'s,
101+
/// are stored within the row as [`crate::var_len::VarLenRef`]s,
102102
/// which refer to an intrusive linked list of 62-byte "granules",
103103
/// allocated separately in a space starting from the end of the page.
104104
/// Strings are stored as UTF-8 bytes; all other var-len types are stored as BSATN-encoded bytes.

0 commit comments

Comments
 (0)