chiark / gitweb /
path resolution tests: Tidy direct use of su_rc to su()
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 3 May 2021 12:03:22 +0000 (13:03 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 3 May 2021 12:03:22 +0000 (13:03 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
apitest/at-otter.rs

index 7cc94032176bdaa30984383410aadcf8f680e40c..aa4afc3e6fdbf7c66cda209291a0770a7c671ff5 100644 (file)
@@ -203,7 +203,7 @@ impl Ctx {
   pub fn chdir_root<F>(&mut self, f: F)
   where F: FnOnce(&mut Self) -> Result<(),AE>
   {
-    let tmp = &(*self.su_rc).borrow().ds.abstmp.clone();
+    let tmp = self.su().ds.abstmp.clone();
     env::set_current_dir("/").expect("cd /");
     self.prctx = PathResolveContext::RelativeTo(tmp.clone());
     f(self).expect("run test");