concise syntax
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user