Skip to content

Commit

Permalink
Use std::error instead of core::error
Browse files Browse the repository at this point in the history
This is to pass CI. It also reverts an unwanted change to the README.md.
  • Loading branch information
allan2 committed Aug 27, 2024
1 parent 4010bd3 commit e131a4c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
16 changes: 0 additions & 16 deletions dotenv/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,6 @@ fn main() {
}
```

Async:
```rs
use dotenvy::dotenv;
use std::env;

fn main() {
// load environment variables from .env file
dotenv().expect(".env file not found");

for (key, value) in env::vars() {
println!("{key}: {value}");
}
}
```


### Loading at compile time

The `dotenv!` macro provided by `dotenvy_macro` crate can be used.
Expand Down
3 changes: 1 addition & 2 deletions dotenv/src/bin/dotenvy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
//!
//! will output `bar`.
use clap::{Parser, Subcommand};
use core::error;
use std::{os::unix::process::CommandExt, path::PathBuf, process};
use std::{error, os::unix::process::CommandExt, path::PathBuf, process};

macro_rules! die {
($fmt:expr) => ({
Expand Down

0 comments on commit e131a4c

Please sign in to comment.