fix: concept idents are wrongly contained a space
Signed-off-by: sisungo <[email protected]>
This commit is contained in:
1 parent
41bf2214ee
commit
8f753d4d4f
1 file changed
+7
-2
+7
-2
@@ -34,6 +34,11 @@ impl Package {
|
||||
})
|
||||
}
|
||||
|
||||
/// Returns file path of the package.
|
||||
pub fn file_path(&self) -> &Path {
|
||||
&self.file_path
|
||||
}
|
||||
|
||||
/// Returns [`PkgManifest`] for this package.
|
||||
pub fn manifest(&self) -> Result<PkgManifest, PackageError> {
|
||||
PkgManifest::read_at(self.extracted_dir.path().join(PkgManifest::FILENAME))
|
||||
@@ -316,8 +321,8 @@ impl FromStr for ConceptIdent {
|
||||
.map(|(a, b)| (a, Some(b)))
|
||||
.unwrap_or((s, None));
|
||||
Ok(Self {
|
||||
name: name.into(),
|
||||
arch: arch.map(Into::into),
|
||||
name: name.trim().into(),
|
||||
arch: arch.map(|x| x.trim().into()),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user