From fb9638d591283939d0d889724c275bbe6b96c0ac Mon Sep 17 00:00:00 2001 From: Project Nayuki Date: Fri, 12 Nov 2021 03:43:07 +0000 Subject: [PATCH] Reformatted a long function signature in Rust. --- rust/src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rust/src/lib.rs b/rust/src/lib.rs index f58d18d..c13bb95 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -207,7 +207,9 @@ impl QrCode { /// Returns a wrapped `QrCode` if successful, or `Err` if the data is too /// long to fit in any version in the given range at the given ECC level. pub fn encode_segments_advanced(segs: &[QrSegment], mut ecl: QrCodeEcc, - minversion: Version, maxversion: Version, mask: Option, boostecl: bool) -> Result { + minversion: Version, maxversion: Version, mask: Option, boostecl: bool) + -> Result { + assert!(minversion <= maxversion, "Invalid value"); // Find the minimal version number to use