Skip to content

Commit bc00d3e

Browse files
a2xchippenberg
authored andcommitted
Deduplicate dep:tower feature in libsql cargo definition
* deduplicate features * fix doctest in `lib.rs` * fix typo in docblock
1 parent 86ac1d8 commit bc00d3e

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

libsql/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ replication = [
8787
"dep:tonic",
8888
"dep:tonic-web",
8989
"dep:tower-http",
90-
"dep:tower",
9190
"dep:hyper-rustls",
9291
"dep:futures",
9392
"dep:libsql_replication",
@@ -113,7 +112,6 @@ remote = [
113112
"dep:tokio",
114113
"dep:futures",
115114
"dep:bitflags",
116-
"dep:tower",
117115
"dep:hyper-rustls",
118116
]
119117
wasm = ["hrana"]

libsql/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@
4242
//!
4343
//! ## Remote database
4444
//!
45-
//! It is also possible to create a libsql connection that does not open a local datatbase but
45+
//! It is also possible to create a libsql connection that does not open a local database but
4646
//! instead sends queries to a remote database.
4747
//!
4848
//! ```rust,no_run
4949
//! # async fn run() {
5050
//! use libsql::Builder;
5151
//!
52-
//! let db = Builder::new_remote("libsql://my-remote-db.com", "my-auth-token").build().await.unwrap();
52+
//! let db = Builder::new_remote("libsql://my-remote-db.com".to_string(), "my-auth-token".to_string()).build().await.unwrap();
5353
//! let conn = db.connect().unwrap();
5454
//! conn.execute("CREATE TABLE IF NOT EXISTS users (email TEXT)", ()).await.unwrap();
5555
//! conn.execute("INSERT INTO users (email) VALUES ('[email protected]')", ()).await.unwrap();

0 commit comments

Comments
 (0)