Move string literal into format string

Co-authored-by: Michael Howell <michael@notriddle.com>
This commit is contained in:
Jacob Hoffman-Andrews 2022-10-29 14:49:00 -07:00 committed by GitHub
parent 0b0bf10533
commit c9dbfe31e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,7 @@ impl<'a> Page<'a> {
pub(crate) fn get_static_root_path(&self) -> String {
match self.static_root_path {
Some(s) => s.to_string(),
None => format!("{}{}", self.root_path, "static.files/"),
None => format!("{}static.files/", self.root_path),
}
}
}