From 324328d2cc2da3cc87963c722cb772c6ec95e6c1 Mon Sep 17 00:00:00 2001 From: DTB Date: Mon, 25 Dec 2023 17:05:19 -0700 Subject: [PATCH] false(1): rewrite from C to Rust --- src/{false.c => false.rs} | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) rename src/{false.c => false.rs} (64%) diff --git a/src/false.c b/src/false.rs similarity index 64% rename from src/false.c rename to src/false.rs index 3b6ec2a..2c382b8 100644 --- a/src/false.c +++ b/src/false.rs @@ -1,4 +1,5 @@ /* + * Copyright (c) 2023 DTB * Copyright (c) 2023 Emma Tebibyte * SPDX-License-Identifier: CC0 * @@ -6,4 +7,8 @@ * . */ -int main() { return 1; } +use std::process::ExitCode; + +fn main() -> ExitCode { + ExitCode::from(1) +}