Skip to content

Commit

Permalink
Fix doc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sitegui committed Jun 24, 2024
1 parent bb8d29f commit 02892c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 2 additions & 3 deletions feattle-sync/src/aws_sdk_s3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use std::fmt;
/// use std::sync::Arc;
/// use std::time::Duration;
/// use feattle_core::{feattles, Feattles};
/// use rusoto_core::Region;
/// use feattle_sync::S3;
///
/// feattles! {
/// struct MyToggles {
Expand All @@ -29,14 +29,13 @@ use std::fmt;
/// #[tokio::main]
/// async fn main() {
/// // Create an AWS config, read more at the official documentation <https://docs.aws.amazon.com/sdk-for-rust/latest/dg/welcome.html>
/// use feattle_sync::S3;
/// let config = aws_config::load_from_env().await;
///
/// let timeout = Duration::from_secs(10);
/// let persistence = Arc::new(S3::new(
/// &config,
/// "my-bucket".to_owned(),
/// "some/s3/prefix/".to_owned(),
/// timeout,
/// ));
/// let my_toggles = MyToggles::new(persistence);
/// }
Expand Down
2 changes: 0 additions & 2 deletions feattle/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
//! ## Example
//!
//! ```no_run
//! use rusoto_s3::S3Client;
//! use rusoto_core::Region;
//! use feattle::*;
//! use std::sync::Arc;
//!
Expand Down

0 comments on commit 02892c0

Please sign in to comment.