pcid: Stop returning feature enable status from fetch_all_features

For the same reason the feature_status method was removed.
This commit is contained in:
bjorn3
2024-06-09 21:54:36 +02:00
parent e14e56349f
commit 588bbfe6a3
10 changed files with 26 additions and 64 deletions
+2 -2
View File
@@ -212,7 +212,7 @@ pub enum PcidServerResponseError {
pub enum PcidClientResponse {
Capabilities(Vec<Capability>),
Config(SubdriverArguments),
AllFeatures(Vec<(PciFeature, FeatureStatus)>),
AllFeatures(Vec<PciFeature>),
FeatureEnabled(PciFeature),
FeatureStatus(PciFeature, FeatureStatus),
Error(PcidServerResponseError),
@@ -287,7 +287,7 @@ impl PcidServerHandle {
}
// FIXME turn into struct with bool fields
pub fn fetch_all_features(&mut self) -> Result<Vec<(PciFeature, FeatureStatus)>> {
pub fn fetch_all_features(&mut self) -> Result<Vec<PciFeature>> {
self.send(&PcidClientRequest::RequestFeatures)?;
match self.recv()? {
PcidClientResponse::AllFeatures(a) => Ok(a),