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:
@@ -39,7 +39,7 @@ pub struct EdgeDeploymentValidator {
|
||||
}
|
||||
|
||||
impl EdgeDeploymentValidator {
|
||||
#[must_use]
|
||||
#[must_use]
|
||||
pub fn new(capabilities: EdgeCapabilities) -> Self {
|
||||
Self { capabilities }
|
||||
}
|
||||
@@ -124,8 +124,6 @@ impl EdgeDeploymentValidator {
|
||||
/// Validate RISC-V platform compatibility
|
||||
/// Requires: RVV (RISC-V Vector) support preferred, minimum 256MB RAM
|
||||
fn validate_riscv_compatibility(&self) -> Result<()> {
|
||||
|
||||
|
||||
// RISC-V works best with RVV, but can fallback to scalar
|
||||
// We just warn if no vector support
|
||||
if self.capabilities.memory_mb < 256 {
|
||||
@@ -274,8 +272,6 @@ impl EdgeDeploymentValidator {
|
||||
/// Validate `IoT` platform compatibility
|
||||
/// Ultra-constrained resource requirements
|
||||
fn validate_iot_compatibility(&self) -> Result<()> {
|
||||
|
||||
|
||||
// IoT deployment is for constrained devices
|
||||
// Very minimal requirements - just need to fit in limited memory
|
||||
if self.capabilities.memory_mb < 32 {
|
||||
|
||||
Reference in New Issue
Block a user