Skip to content

Commit

Permalink
Merge pull request #33 from dariocurr/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
dariocurr authored Feb 19, 2024
2 parents e7745c8 + 590f978 commit d78f3dd
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
ref: ${{ github.ref_name }}

- name: Cache rust
uses: Swatinem/rust-cache@v2.7.1
uses: Swatinem/rust-cache@v2.7.3

- name: Install cargo-release
run: cargo install cargo-release
Expand Down Expand Up @@ -69,7 +69,7 @@ jobs:
- uses: actions/checkout@v4.1.1

- name: Cache rust
uses: Swatinem/rust-cache@v2.7.1
uses: Swatinem/rust-cache@v2.7.3

- name: Install cargo-tarpaulin
run: cargo install cargo-tarpaulin
Expand All @@ -81,13 +81,13 @@ jobs:
mv ./tarpaulin-report.html ./tarpaulin/index.html
- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v2.0.0
uses: actions/upload-pages-artifact@v3.0.1
with:
path: ./tarpaulin

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v3.0.1
uses: actions/deploy-pages@v4.0.4

update-branches:
needs: release
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- uses: actions/checkout@v4.1.1

- name: Cache rust
uses: Swatinem/rust-cache@v2.7.1
uses: Swatinem/rust-cache@v2.7.3

- name: Install cargo-audit
run: cargo install cargo-audit --locked
Expand All @@ -46,7 +46,7 @@ jobs:
- uses: actions/checkout@v4.1.1

- name: Cache rust
uses: Swatinem/rust-cache@v2.7.1
uses: Swatinem/rust-cache@v2.7.3

- name: Check docs
run: cargo doc
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
- uses: actions/checkout@v4.1.1

- name: Cache rust
uses: Swatinem/rust-cache@v2.7.1
uses: Swatinem/rust-cache@v2.7.3

- name: Run tests
run: cargo test -- --test-threads=1
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ keywords = [
license = "MIT OR Apache-2.0"
readme = "README.md"
repository = "https://github.com/dariocurr/env-settings"
version = "0.1.9"
version = "0.1.10"
5 changes: 2 additions & 3 deletions env-settings-utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,15 @@
html_favicon_url = "https://raw.githubusercontent.com/dariocurr/env-settings/main/docs/logo.ico"
)]

//! # **Env Settinsg Utilss**
//! # **Env Settinsg Utils**

use std::{collections, env};
use thiserror::Error;

/// The result type provided by `EnvSettings`
pub type EnvSettingsResult<T> = Result<T, EnvSettingsError>;

/// The error that may occurs during `EnvSettings` resolution
#[derive(Debug, Error)]
#[derive(Debug, thiserror::Error)]
pub enum EnvSettingsError {
/// Error raised when a convertion fails
#[error("Unable to convert the field `{0}`: `{1}` to `{2}`")]
Expand Down

0 comments on commit d78f3dd

Please sign in to comment.