-
Notifications
You must be signed in to change notification settings - Fork 511
Fix doc warnings #2305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Fix doc warnings #2305
Conversation
@@ -25,7 +25,7 @@ pub const SUBSCRIBE_TO_ALL_QUERY: &str = "SELECT * FROM *"; | |||
/// rather than returning a new `SourceSet`. | |||
/// | |||
/// This is necessary when merging multiple SQL queries into a single query set, | |||
/// as in [`crate::subscription::module_subscription_actor::ModuleSubscriptions::add_subscriber`]. | |||
/// as in [`crate::subscription::module_subscription_actor::ModuleSubscriptions::add_multi_subscription`]. | |||
pub fn compile_read_only_queryset( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I not sure if this is correct.
@@ -535,7 +535,7 @@ impl __sdk::DbContext for ReducerEventContext { | |||
|
|||
impl __sdk::ReducerEventContext for ReducerEventContext {} | |||
|
|||
/// An [`__sdk::DbContext`] passed to [`__sdk::SubscriptionBuilder::on_applied`] and [`SubscriptionHandle::unsubscribe_then`] callbacks. | |||
/// An [`__sdk::DbContext`] passed to subscription callbacks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are many more now.
@@ -327,7 +327,7 @@ async fn update_test_files(files: Vec<PathBuf>, engine: DbType, format: bool) -> | |||
Ok(()) | |||
} | |||
|
|||
/// Different from [`sqllogictest::update_test_file`], we re-implement it here to print some | |||
/// Different from [`sqllogictest`], we re-implement logic here to print some | |||
/// progress information. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The original impl
is not there, but this is fine, this only internal and nobody else use it.
@@ -620,8 +620,6 @@ impl SourceExpr { | |||
/// If `self` refers to a [`DbTable`], get a reference to it. | |||
/// | |||
/// Returns `None` if `self` refers to a [`MemTable`]. | |||
/// In that case, retrieving the [`MemTable`] requires inspecting the plan's corresponding [`SourceSet`] | |||
/// via [`SourceSet::take_mem_table`] or [`SourceSet::take_table`]. | |||
pub fn get_db_table(&self) -> Option<&DbTable> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't see how rewrite this part...
//! | ||
//! Run the AST build from [expr::Expr]. It assumes is correct. | ||
//! | ||
|
||
pub use spacetimedb_lib::operator; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Our vm
is not a vm
anymore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm approving the changes for my code-owned files:
crates/cli/src/config.rs
crates/cli/src/subcommands/subscribe.rs
I don't think I'm the right reviewer for the rest of these changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't edit the generated module_bindings
by hand; instead edit the templates in crates/cli/src/subcommands/generate/rust.rs .
I don't have any input on this one, feel free to continue without me 👍 |
ef6b60f
to
18e4d03
Compare
Co-authored-by: Phoebe Goldman <[email protected]> Signed-off-by: Mario Montoya <[email protected]>
18e4d03
to
f197a64
Compare
|
Description of Changes
Fix as many
warnings
caused bycargo doc
.Some that stay:
X
links to private itemY
doc
oncrates/core/src/subscription/subscription.rs
This generateunresolved link
warnings but looks to me that need a full rewrite c.c. @joshua-spacetime.Expected complexity level and risk
0
Testing
cargo doc --all
. Because we have a naming collision:... then I switch adding
doc =false
in each to let me see all the warnings.