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]