From 0d2354aca6a6a399b01047e1cfaf14cd17099f34 Mon Sep 17 00:00:00 2001 From: Sebastian Nowicki Date: Mon, 16 Oct 2017 14:27:15 +0200 Subject: [PATCH] Wrap comments to 79 columns --- tests/workdir.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/workdir.rs b/tests/workdir.rs index fb3ef4f..afa876b 100644 --- a/tests/workdir.rs +++ b/tests/workdir.rs @@ -41,12 +41,14 @@ impl WorkDir { } } - /// Create a new file with the given name and contents in this directory, or panic on error. + /// Create a new file with the given name and contents in this directory, + /// or panic on error. pub fn create>(&self, name: P, contents: &str) { self.create_bytes(name, contents.as_bytes()); } - /// Try to create a new file with the given name and contents in this directory. + /// Try to create a new file with the given name and contents in this + /// directory. pub fn try_create>(&self, name: P, contents: &str) -> io::Result<()> { self.try_create_bytes(name, contents.as_bytes()) } @@ -58,13 +60,15 @@ impl WorkDir { nice_err(&path, file.set_len(filesize)); } - /// Create a new file with the given name and contents in this directory, or panic on error. + /// Create a new file with the given name and contents in this directory, + /// or panic on error. pub fn create_bytes>(&self, name: P, contents: &[u8]) { let path = self.dir.join(name); nice_err(&path, self.try_create_bytes(&path, contents)); } - /// Try to create a new file with the given name and contents in this directory. + /// Try to create a new file with the given name and contents in this + /// directory. fn try_create_bytes>(&self, path: P, contents: &[u8]) -> io::Result<()> { let mut file = File::create(&path)?; file.write_all(contents)?;