Skip to content

Commit

Permalink
chore(release): v0.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeStanger committed Dec 12, 2022
1 parent 21e1ee0 commit 72cb6bd
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion corn-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "corn-cli"
version = "0.5.0"
version = "0.6.1"
edition = "2021"
license = "MIT"
description = "CLI for Corn, A simple and pain-free configuration language."
Expand Down
2 changes: 1 addition & 1 deletion libcorn/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "libcorn"
version = "0.6.0"
version = "0.6.1"
edition = "2021"
license = "MIT"
description = "Parsing engine for Corn, a simple and pain-free configuration language."
Expand Down
24 changes: 14 additions & 10 deletions libcorn/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,20 @@ pub enum Value<'a> {

impl<'a> Display for Value<'a> {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", match self {
Value::Object(_) => "object",
Value::Array(_) => "array",
Value::String(_) => "string",
Value::EnvString(_) => "string (from environment variable)",
Value::Integer(_) => "integer",
Value::Float(_) => "float",
Value::Boolean(_) => "boolean",
Value::Null(_) => "null"
})
write!(
f,
"{}",
match self {
Value::Object(_) => "object",
Value::Array(_) => "array",
Value::String(_) => "string",
Value::EnvString(_) => "string (from environment variable)",
Value::Integer(_) => "integer",
Value::Float(_) => "float",
Value::Boolean(_) => "boolean",
Value::Null(_) => "null",
}
)
}
}

Expand Down

0 comments on commit 72cb6bd

Please sign in to comment.