concise syntax
This commit is contained in:
parent
fa6f5e1bcb
commit
45e113717e
|
@ -160,7 +160,7 @@ fn new_unique_id(ids: Vec<String>) -> String {
|
||||||
new_id += 1;
|
new_id += 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return to_base36(new_id);
|
to_base36(new_id)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub trait Quote {
|
pub trait Quote {
|
||||||
|
@ -169,7 +169,7 @@ pub trait Quote {
|
||||||
|
|
||||||
impl Quote for String {
|
impl Quote for String {
|
||||||
fn quote(&self) -> String {
|
fn quote(&self) -> String {
|
||||||
format!("\"\"\"\n{}\n\"\"\"", self).to_string()
|
format!("\"\"\"\n{}\n\"\"\"", self)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue