From f9ad2c6a93c221cf070113acca8c4113a7b66bae Mon Sep 17 00:00:00 2001 From: Allan <6740989+allan2@users.noreply.github.com> Date: Sat, 5 Oct 2024 10:37:40 -0400 Subject: [PATCH] fmt --- examples/modify-macro/src/main.rs | 2 +- examples/modify-tokio-macro/src/main.rs | 2 +- examples/modify-tokio/src/main.rs | 5 ++--- examples/modify/src/main.rs | 2 +- examples/multiple-files/src/main.rs | 2 +- 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/examples/modify-macro/src/main.rs b/examples/modify-macro/src/main.rs index d26451c7..38f13a1c 100644 --- a/examples/modify-macro/src/main.rs +++ b/examples/modify-macro/src/main.rs @@ -1,5 +1,5 @@ //! The `load` attribute loads and modifies the environment. -//! +//! //! This is more ergonomic than the *modify* example. use std::env; diff --git a/examples/modify-tokio-macro/src/main.rs b/examples/modify-tokio-macro/src/main.rs index c04b68fb..6ac9b03e 100644 --- a/examples/modify-tokio-macro/src/main.rs +++ b/examples/modify-tokio-macro/src/main.rs @@ -1,5 +1,5 @@ //! This is more ergonomic than the *modify-tokio* example. -//! +//! //! The attribute macro executes `load_and_modify` before the tokio runtime is spawned. //! When using this method, `#[dotenvy::load]` be put above `#[tokio::main]`. diff --git a/examples/modify-tokio/src/main.rs b/examples/modify-tokio/src/main.rs index 58e637ed..b24aa6bc 100644 --- a/examples/modify-tokio/src/main.rs +++ b/examples/modify-tokio/src/main.rs @@ -1,7 +1,7 @@ //! `load_and_modify` uses `std::env::set_var` internally, which is not thread-safe. -//! +//! //! When modifying the environment, loading must be executed before the async runtime is spawned. -//! +//! //! The *modify-tokio-macro* example contains a more ergonomic way to do this. use dotenvy::EnvLoader; @@ -10,7 +10,6 @@ use std::{ error, }; - fn main() -> Result<(), Box> { let loader = EnvLoader::with_path("../env-example"); unsafe { loader.load_and_modify() }?; diff --git a/examples/modify/src/main.rs b/examples/modify/src/main.rs index 0525f36c..ebe82565 100644 --- a/examples/modify/src/main.rs +++ b/examples/modify/src/main.rs @@ -1,7 +1,7 @@ //! This example modifies the existing environment. //! //! This makes environment varaibles from available to subprocesses, e.g., a Python script. -//! +//! //! The *modify-macro* example contains a more ergonomic way to do this. use dotenvy::{EnvLoader, EnvSequence}; diff --git a/examples/multiple-files/src/main.rs b/examples/multiple-files/src/main.rs index 7e69aee1..2f268a00 100644 --- a/examples/multiple-files/src/main.rs +++ b/examples/multiple-files/src/main.rs @@ -7,7 +7,7 @@ fn main() -> Result<(), Box> { .sequence(EnvSequence::EnvThenInput) .load()?; - // the sequence is `InputOnly` as we aleady loaded the program environment in the previous step. + // the sequence is `InputOnly` as we aleady loaded the program environment in the previous step. let map_b = EnvLoader::with_path("../env-example-2") .sequence(EnvSequence::InputOnly) .load()?;