Skip to content

Commit

Permalink
Editorial updates
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidSouther committed Oct 24, 2023
1 parent 8bace65 commit 98f5e8f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .doc_gen/metadata/aurora_metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1210,16 +1210,16 @@ aurora_Scenario_GetStartedClusters:
- sdk_version: 1
github: rust_dev_preview/examples/aurora
excerpts:
- description: A library containing the scenario-specific functions for the Aurora Scenario.
- description: A library containing the scenario-specific functions for the Aurora scenario.
snippet_files:
- rust_dev_preview/examples/aurora/src/aurora_scenario/mod.rs
- description: Tests for the library using automocks around the RDS Client wrapper.
snippet_files:
- rust_dev_preview/examples/aurora/src/aurora_scenario/tests.rs
- description: A binary to run the scenario from front to end, using inquirer to allow the user to make some decisions.
- description: A binary to run the scenario from front to end, using inquirer so that the user can make some decisions.
snippet_files:
- rust_dev_preview/examples/aurora/src/bin/aurora-scenario.rs
- description: A wrapper around the RDS service that allows automocking for tests.
- description: A wrapper around the Amazon RDS service that allows automocking for tests.
snippet_files:
- rust_dev_preview/examples/aurora/src/rds.rs
- description: The Cargo.toml with dependencies used in this scenario.
Expand Down
8 changes: 4 additions & 4 deletions rust_dev_preview/examples/aurora/src/rds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,25 +33,25 @@ use aws_sdk_rds::{
},
},
types::{OrderableDbInstanceOption, Parameter},
Client,
Client as RdsClient,
};
use secrecy::{ExposeSecret, SecretString};

#[cfg(test)]
use mockall::automock;

use secrecy::{ExposeSecret, SecretString};
#[cfg(test)]
pub use MockRdsImpl as Rds;
#[cfg(not(test))]
pub use RdsImpl as Rds;

pub struct RdsImpl {
pub inner: Client,
pub inner: RdsClient,
}

#[cfg_attr(test, automock)]
impl RdsImpl {
pub fn new(inner: Client) -> Self {
pub fn new(inner: RdsClient) -> Self {
RdsImpl { inner }
}

Expand Down

0 comments on commit 98f5e8f

Please sign in to comment.