Skip to content

Commit

Permalink
Update (#6)
Browse files Browse the repository at this point in the history
* Fix lint

* Update deps

* Fixup deny.toml
  • Loading branch information
Jake-Shadle authored Jun 13, 2024
1 parent dd2fe20 commit 3e1d59b
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 79 deletions.
117 changes: 46 additions & 71 deletions Cargo.lock

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

11 changes: 6 additions & 5 deletions deny.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
[graph]
targets = [
{ triple = "x86_64-unknown-linux" },
{ triple = "x86_64-unknown-musl" },
{ triple = "x86_64-apple-darwin" },
{ triple = "aarch64-apple-darwin" },
{ triple = "x86_64-pc-windows-msvc" },
"x86_64-unknown-linux",
"x86_64-unknown-musl",
"x86_64-apple-darwin",
"aarch64-apple-darwin",
"x86_64-pc-windows-msvc",
]
all-features = true

Expand Down
4 changes: 1 addition & 3 deletions toml-span/src/de_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,7 @@ impl<'de> TableHelper<'de> {
pub fn optional_s<T: Deserialize<'de>>(&mut self, name: &'static str) -> Option<Spanned<T>> {
self.expected.push(name);

let Some(mut val) = self.table.remove(&name.into()) else {
return None;
};
let mut val = self.table.remove(&name.into())?;

match Spanned::<T>::deserialize(&mut val) {
Ok(v) => Some(v),
Expand Down

0 comments on commit 3e1d59b

Please sign in to comment.