Skip to content

Commit

Permalink
Use entire example for aurora hellp_world
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidSouther authored and meyertst-aws committed Nov 6, 2023
1 parent b4ec8f6 commit 27786ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .doc_gen/metadata/aurora_metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ aurora_Hello:
- sdk_version: 1
github: rust_dev_preview/examples/aurora
excerpts:
- snippet_tags:
- rust.aurora.hello-world
- snippet_files:
- rust_dev_preview/examples/aurora/src/bin/hello-world.rs
services:
aurora: {DescribeDBClusters}
aurora_DescribeDBClusterParameterGroups:
Expand Down
7 changes: 1 addition & 6 deletions rust_dev_preview/examples/aurora/src/bin/hello-world.rs
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
use std::fmt::Display;

use aws_sdk_rds::Client;

#[derive(Debug)]
struct Error(String);
impl Display for Error {
impl std::fmt::Display for Error {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.0)
}
}
impl std::error::Error for Error {}

// snippet-start:[rust.aurora.hello-world]
#[tokio::main]
async fn main() -> Result<(), Error> {
tracing_subscriber::fmt::init();
Expand Down Expand Up @@ -40,5 +37,3 @@ async fn main() -> Result<(), Error> {

Ok(())
}

// snippet-end:[rust.aurora.hello-world]

0 comments on commit 27786ce

Please sign in to comment.