Skip to content

Commit cecd028

Browse files
committed
ci(rust): allow existing vfio complexity
1 parent 7113b8c commit cecd028

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • crates/openshell-vfio/src

crates/openshell-vfio/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,7 @@ fn bind_device_to_vfio(sysfs: &SysfsRoot, bdf: &str) -> Result<bool, VfioError>
605605
/// Also binds all companion devices in the same IOMMU group (e.g. the
606606
/// HD Audio function on consumer GPUs). All bound companions are tracked
607607
/// and restored when the guard is dropped.
608+
#[allow(clippy::cognitive_complexity)]
608609
pub fn prepare_gpu_for_passthrough(
609610
sysfs: &SysfsRoot,
610611
bdf: &str,
@@ -748,6 +749,7 @@ fn restore_gpu_to_host_driver_ex(
748749
/// Removes the state file only when all bindings are resolved; rewrites it
749750
/// with the remaining entries when some restorations fail so they can be
750751
/// retried on the next process start.
752+
#[allow(clippy::cognitive_complexity)]
751753
pub fn reconcile_stale_bindings(sysfs: &SysfsRoot, state_path: &Path) -> Vec<String> {
752754
let state = match GpuBindState::load(state_path) {
753755
Ok(s) => s,

0 commit comments

Comments
 (0)