diff --git a/dotenvy-macros/src/lib.rs b/dotenvy-macros/src/lib.rs index 79e6147f..cae16ff4 100644 --- a/dotenvy-macros/src/lib.rs +++ b/dotenvy-macros/src/lib.rs @@ -13,7 +13,7 @@ use syn::{ /// Three optional arguments are supported: `path`, `required`, and `override_`. /// Usage is like `#[dotenvy::load(path = ".env", required = true, override_ = true)]`. /// -/// The default path is "./env". The default sequence is `EnvSequence::InputThenEnv`. +/// The default path is "./.env". The default sequence is `EnvSequence::InputThenEnv`. #[proc_macro_attribute] pub fn load(attr: TokenStream, item: TokenStream) -> TokenStream { let attrs = parse_macro_input!(attr as LoadInput); diff --git a/dotenvy/src/lib.rs b/dotenvy/src/lib.rs index 99cbccaf..a41351d8 100644 --- a/dotenvy/src/lib.rs +++ b/dotenvy/src/lib.rs @@ -2,7 +2,8 @@ #![allow( clippy::missing_errors_doc, clippy::too_many_lines, - clippy::missing_safety_doc + clippy::missing_safety_doc, + unused_unsafe, // until Rust 2024 )] #![deny(clippy::uninlined_format_args, clippy::wildcard_imports)] @@ -133,9 +134,9 @@ pub struct EnvLoader<'a> { impl<'a> EnvLoader<'a> { #[must_use] - /// Creates a new `EnvLoader` with the path set to `./env` in the current directory. + /// Creates a new `EnvLoader` with the path set to `./.env` in the current directory. pub fn new() -> Self { - Self::with_path("./env") + Self::with_path("./.env") } /// Creates a new `EnvLoader` with the path as input.