Skip to content

Commit 50902f3

Browse files
authored
Run command tech review (#49)
1 parent 47ce994 commit 50902f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/includes/fundamentals/code-snippets/run-command.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ use mongodb::{ bson::{ doc, Document }, Client, Database };
22

33
#[tokio::main]
44
async fn main() -> mongodb::error::Result<()> {
5-
let uri: &str = "<connection string>";
5+
let uri = "<connection string>";
66

7-
let client: Client = Client::with_uri_str(uri).await?;
7+
let client = Client::with_uri_str(uri).await?;
88

99
// start-runcommand
1010
let my_db = client.database("plants");

0 commit comments

Comments
 (0)