concise syntax

This commit is contained in:
Max Bradbury 2020-10-15 23:27:47 +01:00
parent fa6f5e1bcb
commit 45e113717e
1 changed files with 2 additions and 2 deletions

View File

@ -160,7 +160,7 @@ fn new_unique_id(ids: Vec<String>) -> 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)
}
}