about summary refs log tree commit diff
diff options
context:
space:
mode:
authorgaurikholkar <f2013002@goa.bits-pilani.ac.in>2018-04-09 23:12:13 +0530
committergaurikholkar <f2013002@goa.bits-pilani.ac.in>2018-04-09 23:12:13 +0530
commitc792d1e0c1a95bdc6505d8012efbede4600985d1 (patch)
treea676978a73f6032f36281f92bd81900269d98536
parent2ad20e8127094bb22d88e2e98012ad4ea20e2d3f (diff)
downloadrust-c792d1e0c1a95bdc6505d8012efbede4600985d1.tar.gz
rust-c792d1e0c1a95bdc6505d8012efbede4600985d1.zip
tidy fixes
-rw-r--r--src/librustc_mir/borrow_check/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_mir/borrow_check/mod.rs b/src/librustc_mir/borrow_check/mod.rs
index 3d1d64bb71c..2a7cbe28952 100644
--- a/src/librustc_mir/borrow_check/mod.rs
+++ b/src/librustc_mir/borrow_check/mod.rs
@@ -1529,11 +1529,11 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
 
     fn get_primary_err_msg(&self, place:&Place<'tcx>) -> String{
         if let Some(name) = self.describe_place(place) {
-            format!("`{}` is a `&` reference, so the data it refers to cannot be written", name) 
+            format!("`{}` is a `&` reference, so the data it refers to cannot be written", name)
         } else {
             format!("cannot assign through `&`-reference")
         }
-    }    
+    }
 
     /// Check the permissions for the given place and read or write kind
     ///
@@ -1592,7 +1592,7 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
                                                 self.get_secondary_err_msg(base)
                                             } else {
                                                 self.get_default_err_msg(place)
-                                            };   
+                                            };
                                             err_info = Some((
                                                 self.mir.source_info(locations[0]).span,
                                                     "consider changing this to be a \