mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-02 06:41: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> {
|
fn package(&self) -> Result<&toml_edit::Table> {
|
||||||
Ok(self
|
self.doc
|
||||||
.doc
|
|
||||||
.as_table()
|
.as_table()
|
||||||
.get("package")
|
.get("package")
|
||||||
.map(|p| p.as_table())
|
.map(|p| p.as_table())
|
||||||
.flatten()
|
.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)> {
|
fn dependencies<'a>(&self, dep_type: &'a str) -> Vec<(String, CargoDependency)> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue