From 45e113717ed9c7950c2ea5bfca3b0a63c38e89ff Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Thu, 15 Oct 2020 23:27:47 +0100 Subject: [PATCH] concise syntax --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 5022b40..b82079c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -160,7 +160,7 @@ fn new_unique_id(ids: Vec) -> String { new_id += 1; } - return to_base36(new_id); + to_base36(new_id) } pub trait Quote { @@ -169,7 +169,7 @@ pub trait Quote { impl Quote for String { fn quote(&self) -> String { - format!("\"\"\"\n{}\n\"\"\"", self).to_string() + format!("\"\"\"\n{}\n\"\"\"", self) } }