]> git.lizzy.rs Git - rust.git/commitdiff
Move string literal into format string
authorJacob Hoffman-Andrews <github@hoffman-andrews.com>
Sat, 29 Oct 2022 21:49:00 +0000 (14:49 -0700)
committerGitHub <noreply@github.com>
Sat, 29 Oct 2022 21:49:00 +0000 (14:49 -0700)
Co-authored-by: Michael Howell <michael@notriddle.com>
src/librustdoc/html/layout.rs

index c1b3526eb454167957c32be3d1a1b724fadb7dc0..48c6abfca90cee5cfb238e401911de2d48cded87 100644 (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),
         }
     }
 }