style: apply rustfmt across all crates and demos
Consistent formatting pass: line wrapping, import sorting, trailing whitespace removal, let-chain indentation, merged derive attributes, and unsafe block reformatting. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
This commit is contained in:
@@ -270,7 +270,7 @@ impl EdgeAwareTraining {
|
||||
}
|
||||
|
||||
/// Get comprehensive real-time metrics
|
||||
#[must_use]
|
||||
#[must_use]
|
||||
pub fn get_metrics(&self) -> HashMap<String, f64> {
|
||||
self.metrics.lock().unwrap().clone()
|
||||
}
|
||||
@@ -282,19 +282,19 @@ impl EdgeAwareTraining {
|
||||
}
|
||||
|
||||
/// Get current model configuration
|
||||
#[must_use]
|
||||
#[must_use]
|
||||
pub fn get_model_config(&self) -> &EdgeTransformerConfig {
|
||||
&self.model_config
|
||||
}
|
||||
|
||||
/// Get detected capabilities
|
||||
#[must_use]
|
||||
#[must_use]
|
||||
pub fn get_capabilities(&self) -> &EdgeCapabilities {
|
||||
&self.capabilities
|
||||
}
|
||||
|
||||
/// Get federated learning configuration
|
||||
#[must_use]
|
||||
#[must_use]
|
||||
pub fn get_federated_config(&self) -> &FederatedConfig {
|
||||
&self.federated_config
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user