Skip to content

Commit

Permalink
docs: fix broken links
Browse files Browse the repository at this point in the history
  • Loading branch information
loyd committed Jul 15, 2024
1 parent d7696bb commit b5de870
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
5 changes: 4 additions & 1 deletion rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
edition = "2021"

merge_derives = false
imports_granularity = "Crate"
normalize_comments = true
reorder_impl_items = true
wrap_comments = true
8 changes: 5 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ use std::{collections::HashMap, sync::Arc, time::Duration};

#[cfg(feature = "tls")]
use hyper_tls::HttpsConnector;
use hyper_util::client::legacy::{connect::HttpConnector, Client as HyperClient};
use hyper_util::rt::TokioExecutor;
use hyper_util::{
client::legacy::{connect::HttpConnector, Client as HyperClient},
rt::TokioExecutor,
};

pub use clickhouse_derive::Row;

Expand Down Expand Up @@ -84,7 +86,7 @@ impl Default for Client {
impl Client {
/// Creates a new client with a specified underlying HTTP client.
///
/// See [`HttpClient`] for details.
/// See `HttpClient` for details.
pub fn with_http_client(client: impl HttpClient) -> Self {
Self {
http: Arc::new(client),
Expand Down
10 changes: 7 additions & 3 deletions src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,14 @@ impl Query {

/// Binds `value` to the next `?` in the query.
///
/// The `value`, which must either implement [`Serialize`](serde::Serialize)
/// or be an [`Identifier`], will be appropriately escaped.
/// The `value`, which must either implement [`Serialize`] or be an
/// [`Identifier`], will be appropriately escaped.
///
/// WARNING: This means that the query must not have any extra `?`, even if
/// they are in a string literal!
///
/// [`Serialize`]: serde::Serialize
/// [`Identifier`]: crate::sql::Identifier
pub fn bind(mut self, value: impl Bind) -> Self {
self.sql.bind_arg(value);
self
Expand Down Expand Up @@ -99,7 +102,8 @@ impl Query {
self.fetch()?.next().await
}

/// Executes the query and returns all the generated results, collected into a Vec.
/// Executes the query and returns all the generated results,
/// collected into a Vec.
///
/// Note that `T` must be owned.
pub async fn fetch_all<T>(self) -> Result<Vec<T>>
Expand Down

0 comments on commit b5de870

Please sign in to comment.