Skip to content

Commit

Permalink
Move string literal into format string
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Howell <[email protected]>
  • Loading branch information
jsha and notriddle authored Oct 29, 2022
1 parent 0b0bf10 commit c9dbfe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustdoc/html/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
}
}
Expand Down

0 comments on commit c9dbfe3

Please sign in to comment.