[rust PATCH 2/3] cargo fmt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Mathias Pius <mathias@xxxxxxx>

---
 src/storage_pool.rs | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/storage_pool.rs b/src/storage_pool.rs
index 02395bf..571fabd 100644
--- a/src/storage_pool.rs
+++ b/src/storage_pool.rs
@@ -387,12 +387,13 @@ impl StoragePool {
 
     pub fn list_all_volumes(
         &self,
-        flags: StoragePoolListAllVolumesFlags
+        flags: StoragePoolListAllVolumesFlags,
     ) -> Result<Vec<StorageVol>, Error> {
         unsafe {
             let mut volumes: *mut virStorageVolPtr = ptr::null_mut();
 
-            let size = virStoragePoolListAllVolumes(self.as_ptr(), &mut volumes, flags as libc::c_uint);
+            let size =
+                virStoragePoolListAllVolumes(self.as_ptr(), &mut volumes, flags as libc::c_uint);
             if size == -1 {
                 return Err(Error::new());
             }
@@ -405,7 +406,7 @@ impl StoragePool {
             }
             libc::free(volumes as *mut libc::c_void);
 
-            return Ok(array)
+            Ok(array)
         }
     }
 
-- 
2.25.0

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux