Skip to content

Commit 3e1d59b

Browse files
authored
Update (#6)
* Fix lint * Update deps * Fixup deny.toml
1 parent dd2fe20 commit 3e1d59b

File tree

3 files changed

+53
-79
lines changed

3 files changed

+53
-79
lines changed

Cargo.lock

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

deny.toml

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
[graph]
12
targets = [
2-
{ triple = "x86_64-unknown-linux" },
3-
{ triple = "x86_64-unknown-musl" },
4-
{ triple = "x86_64-apple-darwin" },
5-
{ triple = "aarch64-apple-darwin" },
6-
{ triple = "x86_64-pc-windows-msvc" },
3+
"x86_64-unknown-linux",
4+
"x86_64-unknown-musl",
5+
"x86_64-apple-darwin",
6+
"aarch64-apple-darwin",
7+
"x86_64-pc-windows-msvc",
78
]
89
all-features = true
910

toml-span/src/de_helpers.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,7 @@ impl<'de> TableHelper<'de> {
144144
pub fn optional_s<T: Deserialize<'de>>(&mut self, name: &'static str) -> Option<Spanned<T>> {
145145
self.expected.push(name);
146146

147-
let Some(mut val) = self.table.remove(&name.into()) else {
148-
return None;
149-
};
147+
let mut val = self.table.remove(&name.into())?;
150148

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

0 commit comments

Comments
 (0)