Skip to content

Commit 8f5bd94

Browse files
committed
Update toml.
Just keeping up-to-date.
1 parent f401737 commit 8f5bd94

File tree

4 files changed

+110
-15
lines changed

4 files changed

+110
-15
lines changed

Cargo.lock

+101-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ serde_derive = "1.0"
3333
serde_json = "1.0"
3434
shlex = "0.1"
3535
tempfile = "3.0"
36-
toml = "0.4.8"
37-
toml-query = "0.7"
36+
toml = "0.5.1"
37+
toml-query = "0.9"
3838

3939
# Watch feature
4040
notify = { version = "4.0", optional = true }

src/config.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ impl Config {
206206
} else if index.starts_with("build.") {
207207
self.build.update_value(&index[6..], value);
208208
} else {
209-
self.rest.insert(index, value)?;
209+
self.rest.insert(index, value).map_err(|e| ErrorKind::TomlQueryError(e))?;
210210
}
211211

212212
Ok(())

src/lib.rs

+6-4
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,6 @@ pub mod errors {
129129
SerdeJson(serde_json::Error) #[doc = "JSON conversion failed"];
130130
}
131131

132-
links {
133-
TomlQuery(toml_query::error::Error, toml_query::error::ErrorKind) #[doc = "A TomlQuery error"];
134-
}
135-
136132
errors {
137133
/// A subprocess exited with an unsuccessful return code.
138134
Subprocess(message: String, output: std::process::Output) {
@@ -151,6 +147,12 @@ pub mod errors {
151147
description("Reserved Filename")
152148
display("{} is reserved for internal use", filename.display())
153149
}
150+
151+
/// Error with a TOML file.
152+
TomlQueryError(inner: toml_query::error::Error) {
153+
description("toml_query error")
154+
display("{}", inner)
155+
}
154156
}
155157
}
156158

0 commit comments

Comments
 (0)