mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 22:31:14 +00:00
Janitor: Remove unnecessary ?
This commit is contained in:
parent
da324e5505
commit
287c96386e
1 changed files with 2 additions and 3 deletions
|
@ -354,13 +354,12 @@ impl CargoToml {
|
|||
}
|
||||
|
||||
fn package(&self) -> Result<&toml_edit::Table> {
|
||||
Ok(self
|
||||
.doc
|
||||
self.doc
|
||||
.as_table()
|
||||
.get("package")
|
||||
.map(|p| p.as_table())
|
||||
.flatten()
|
||||
.ok_or_else(|| anyhow::anyhow!("Invalid Cargo.toml -- cannot find package section"))?)
|
||||
.ok_or_else(|| anyhow::anyhow!("Invalid Cargo.toml -- cannot find package section"))
|
||||
}
|
||||
|
||||
fn dependencies<'a>(&self, dep_type: &'a str) -> Vec<(String, CargoDependency)> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue