Skip to content

Commit c9dbfe3

Browse files
jshanotriddle
andauthored
Move string literal into format string
Co-authored-by: Michael Howell <[email protected]>
1 parent 0b0bf10 commit c9dbfe3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/layout.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ impl<'a> Page<'a> {
3838
pub(crate) fn get_static_root_path(&self) -> String {
3939
match self.static_root_path {
4040
Some(s) => s.to_string(),
41-
None => format!("{}{}", self.root_path, "static.files/"),
41+
None => format!("{}static.files/", self.root_path),
4242
}
4343
}
4444
}

0 commit comments

Comments
 (0)