[librsvg/rustify-rsvg-convert: 1/4] lal
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/rustify-rsvg-convert: 1/4] lal
- Date: Wed, 13 Jan 2021 08:29:31 +0000 (UTC)
commit f2be7d057b13f8b9ad280edf32520d2131109bbe
Author: Paolo Borelli <pborelli gnome org>
Date: Wed Jan 13 09:26:18 2021 +0100
lal
src/bin/rsvg-convert/main.rs | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/src/bin/rsvg-convert/main.rs b/src/bin/rsvg-convert/main.rs
index 0e8eb463..e5089559 100644
--- a/src/bin/rsvg-convert/main.rs
+++ b/src/bin/rsvg-convert/main.rs
@@ -744,9 +744,7 @@ fn size_limit_exceeded() -> ! {
}
fn main() {
- let converter = parse_args().unwrap_or_else(|e| e.exit());
-
- converter.convert();
+ parse_args().map_or_else(|e| e.exit(), |converter| converter.convert());
}
#[cfg(test)]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]