fix: concept idents are wrongly contained a space

Signed-off-by: sisungo <[email protected]>
This commit is contained in:
sisungo committed 2026-10-16 06:15:39 +00:00
1 parent 41bf2214ee
commit 8f753d4d4f
1 file changed
+7 -2
+7 -2
View File
@@ -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()),
})
}
}