From c81312d0061484f5dae232a1212de7b8f1aeb8f0 Mon Sep 17 00:00:00 2001 From: David Souther Date: Thu, 2 Nov 2023 20:21:01 -0400 Subject: [PATCH] Use entire example for aurora hellp_world --- .doc_gen/metadata/aurora_metadata.yaml | 4 ++-- rust_dev_preview/examples/aurora/src/bin/hello-world.rs | 7 +------ 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/.doc_gen/metadata/aurora_metadata.yaml b/.doc_gen/metadata/aurora_metadata.yaml index cb52ab784ac..0014407b09b 100644 --- a/.doc_gen/metadata/aurora_metadata.yaml +++ b/.doc_gen/metadata/aurora_metadata.yaml @@ -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: diff --git a/rust_dev_preview/examples/aurora/src/bin/hello-world.rs b/rust_dev_preview/examples/aurora/src/bin/hello-world.rs index 1852982e384..15999ea1f15 100644 --- a/rust_dev_preview/examples/aurora/src/bin/hello-world.rs +++ b/rust_dev_preview/examples/aurora/src/bin/hello-world.rs @@ -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(); @@ -40,5 +37,3 @@ async fn main() -> Result<(), Error> { Ok(()) } - -// snippet-end:[rust.aurora.hello-world]