Skip to content

Commit 7d0c04f

Browse files
nsipplswezeyLorak-mmk
authored andcommitted
fixes doc linting error: redundant explicit link target
error: redundant explicit link target --> scylla/src/lib.rs:16:55 | 16 | //! All driver activity revolves around the [Session](crate::Session)\ | ------- ^^^^^^^^^^^^^^ explicit target is redundant | | | because label contains path that resolves to same destination | = note: when a link's destination is not specified, the label is used to resolve intra-doc links = note: `-D rustdoc::redundant-explicit-links` implied by `-D warnings` help: remove explicit link target fixes: scylladb#847
1 parent 7ce277c commit 7d0c04f

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

scylla/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
//!
1414
//! # Driver overview
1515
//! ### Connecting
16-
//! All driver activity revolves around the [Session](crate::Session)\
16+
//! All driver activity revolves around the [Session]\
1717
//! `Session` is created by specifying a few known nodes and connecting to them:
1818
//!
1919
//! ```rust,no_run
@@ -31,7 +31,7 @@
3131
//! Ok(())
3232
//! }
3333
//! ```
34-
//! `Session` is usually created using the [SessionBuilder](crate::SessionBuilder).\
34+
//! `Session` is usually created using the [SessionBuilder].\
3535
//! All configuration options for a `Session` can be specified while building.
3636
//!
3737
//! ### Making queries

scylla/src/statement/batch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ impl Batch {
7676
/// A query is idempotent if it can be applied multiple times without changing the result of the initial application
7777
/// If set to `true` we can be sure that it is idempotent
7878
/// If set to `false` it is unknown whether it is idempotent
79-
/// This is used in [`RetryPolicy`](crate::retry_policy::RetryPolicy) to decide if retrying a query is safe
79+
/// This is used in [`RetryPolicy`] to decide if retrying a query is safe
8080
pub fn set_is_idempotent(&mut self, is_idempotent: bool) {
8181
self.config.is_idempotent = is_idempotent;
8282
}

scylla/src/statement/prepared_statement.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ impl PreparedStatement {
239239
/// A query is idempotent if it can be applied multiple times without changing the result of the initial application
240240
/// If set to `true` we can be sure that it is idempotent
241241
/// If set to `false` it is unknown whether it is idempotent
242-
/// This is used in [`RetryPolicy`](crate::retry_policy::RetryPolicy) to decide if retrying a query is safe
242+
/// This is used in [`RetryPolicy`] to decide if retrying a query is safe
243243
pub fn set_is_idempotent(&mut self, is_idempotent: bool) {
244244
self.config.is_idempotent = is_idempotent;
245245
}

scylla/src/statement/query.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ impl Query {
7676
/// A query is idempotent if it can be applied multiple times without changing the result of the initial application
7777
/// If set to `true` we can be sure that it is idempotent
7878
/// If set to `false` it is unknown whether it is idempotent
79-
/// This is used in [`RetryPolicy`](crate::retry_policy::RetryPolicy) to decide if retrying a query is safe
79+
/// This is used in [`RetryPolicy`] to decide if retrying a query is safe
8080
pub fn set_is_idempotent(&mut self, is_idempotent: bool) {
8181
self.config.is_idempotent = is_idempotent;
8282
}

scylla/src/transport/host_filter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Host filters.
22
//!
33
//! Host filters are essentially just a predicate over
4-
//! [`Peer`](crate::transport::topology::Peer)s. Currently, they are used
4+
//! [`Peer`]s. Currently, they are used
55
//! by the [`Session`](crate::transport::session::Session) to determine whether
66
//! connections should be opened to a given node or not.
77

scylla/src/transport/session.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ impl Session {
560560
///
561561
/// See [the book](https://rust-driver.docs.scylladb.com/stable/queries/simple.html) for more information
562562
/// # Arguments
563-
/// * `query` - query to perform, can be just a `&str` or the [Query](crate::query::Query) struct.
563+
/// * `query` - query to perform, can be just a `&str` or the [Query] struct.
564564
/// * `values` - values bound to the query, easiest way is to use a tuple of bound values
565565
///
566566
/// # Examples
@@ -731,12 +731,12 @@ impl Session {
731731
/// This method will query all pages of the result\
732732
///
733733
/// Returns an async iterator (stream) over all received rows\
734-
/// Page size can be specified in the [Query](crate::query::Query) passed to the function
734+
/// Page size can be specified in the [Query] passed to the function
735735
///
736736
/// See [the book](https://rust-driver.docs.scylladb.com/stable/queries/paged.html) for more information
737737
///
738738
/// # Arguments
739-
/// * `query` - query to perform, can be just a `&str` or the [Query](crate::query::Query) struct.
739+
/// * `query` - query to perform, can be just a `&str` or the [Query] struct.
740740
/// * `values` - values bound to the query, easiest way is to use a tuple of bound values
741741
///
742742
/// # Example
@@ -798,7 +798,7 @@ impl Session {
798798
/// See [the book](https://rust-driver.docs.scylladb.com/stable/queries/prepared.html) for more information
799799
///
800800
/// # Arguments
801-
/// * `query` - query to prepare, can be just a `&str` or the [Query](crate::query::Query) struct.
801+
/// * `query` - query to prepare, can be just a `&str` or the [Query] struct.
802802
///
803803
/// # Example
804804
/// ```rust
@@ -875,7 +875,7 @@ impl Session {
875875
.as_deref()
876876
}
877877

878-
/// Execute a prepared query. Requires a [PreparedStatement](crate::prepared_statement::PreparedStatement)
878+
/// Execute a prepared query. Requires a [PreparedStatement]
879879
/// generated using [`Session::prepare`](Session::prepare)\
880880
/// Returns only a single page of results, to receive multiple pages use [execute_iter](Session::execute_iter)
881881
///
@@ -1035,7 +1035,7 @@ impl Session {
10351035
/// This method will query all pages of the result\
10361036
///
10371037
/// Returns an async iterator (stream) over all received rows\
1038-
/// Page size can be specified in the [PreparedStatement](crate::prepared_statement::PreparedStatement)
1038+
/// Page size can be specified in the [PreparedStatement]
10391039
/// passed to the function
10401040
///
10411041
/// See [the book](https://rust-driver.docs.scylladb.com/stable/queries/paged.html) for more information
@@ -1104,7 +1104,7 @@ impl Session {
11041104
/// See [the book](https://rust-driver.docs.scylladb.com/stable/queries/batch.html) for more information
11051105
///
11061106
/// # Arguments
1107-
/// * `batch` - [Batch](crate::batch::Batch) to be performed
1107+
/// * `batch` - [Batch] to be performed
11081108
/// * `values` - List of values for each query, it's the easiest to use a tuple of tuples
11091109
///
11101110
/// # Example

0 commit comments

Comments
 (0)