summaryrefslogtreecommitdiffstats
path: root/crates/runner/src/lib.rs
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2021-10-26 17:30:11 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2021-10-26 17:30:11 +0200
commit8bebe4c76107d8b0a55fda238b0475469d374d77 (patch)
treef16f7ea339af3c442e5daddf9c6ba0c8119a1a29 /crates/runner/src/lib.rs
parente57b743058836ef34d4dd96fca5d6152f910140c (diff)
downloadrebel-8bebe4c76107d8b0a55fda238b0475469d374d77.tar
rebel-8bebe4c76107d8b0a55fda238b0475469d374d77.zip
Switch to 2021 edition
Diffstat (limited to 'crates/runner/src/lib.rs')
-rw-r--r--crates/runner/src/lib.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/runner/src/lib.rs b/crates/runner/src/lib.rs
index d0d8317..21289cf 100644
--- a/crates/runner/src/lib.rs
+++ b/crates/runner/src/lib.rs
@@ -119,7 +119,9 @@ pub struct Runner {
impl Runner {
/// Creates a new container runner
///
- /// Unsafe: Do not call in multithreaded processes
+ /// # Safety
+ ///
+ /// Do not call in multithreaded processes.
pub unsafe fn new(options: &Options) -> Result<Self> {
let lockfile = unix::lock(paths::LOCKFILE, true, false)
.context("Failed to get lock on build directory, is another instance running?")?;