Skip to content

Commit

Permalink
apply comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Geobert Quach committed Apr 6, 2019
1 parent 3bd5f9f commit 4046119
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cobalt_model/pagination_config.rs
Expand Up @@ -128,7 +128,7 @@ impl PaginationConfigBuilder {
Some(PaginationConfig {
include,
per_page,
front_permalink: permalink.to_string(),
front_permalink: permalink.to_owned(),
permalink_suffix,
order,
sort_by,
Expand Down
2 changes: 1 addition & 1 deletion src/cobalt_model/permalink.rs
Expand Up @@ -24,7 +24,7 @@ fn explode_permalink_string(permalink: &str, attributes: &liquid::value::Object)
// Handle cases where substutions were blank
p = p.replace("//", "/");

if p.starts_with('/') && p.len() > 1 {
if p.starts_with('/') {
p.remove(0);
}

Expand Down

0 comments on commit 4046119

Please sign in to comment.