[rust PATCH 2/3] cargo fmt

mathias at pius.io mathias at pius.io
Mon Feb 10 13:38:06 UTC 2020


From: Mathias Pius <mathias at pius.io>

---
 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 839 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20200210/ae63d313/attachment-0001.sig>


More information about the libvir-list mailing list