summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatan Kushner <hello@matchai.me>2019-04-15 14:38:45 -0400
committerGitHub <noreply@github.com>2019-04-15 14:38:45 -0400
commitab5490bea691d6c5fbe525a54799c17d4bd76dca (patch)
tree0e0355a2b96370767a4308baa4a5e33e45bb12c9 /src
parentd2cda32c8767f5c3b4d5429b849a24f943367fef (diff)
Add README.md badges (#5)
Diffstat (limited to 'src')
-rw-r--r--src/modules/directory.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/directory.rs b/src/modules/directory.rs
index 0aed255e5..2b5e52722 100644
--- a/src/modules/directory.rs
+++ b/src/modules/directory.rs
@@ -61,7 +61,7 @@ fn get_repo_root(repo: &Repository) -> &Path {
}
/// Contract the root component of a path
-///
+///
/// Replaces the `top_level_path` in a given `full_path` with the provided
/// `top_level_replacement`.
fn contract_path(full_path: &Path, top_level_path: &Path, top_level_replacement: &str) -> String {
@@ -86,7 +86,7 @@ fn contract_path(full_path: &Path, top_level_path: &Path, top_level_replacement:
}
/// Truncate a path to only have a set number of path components
-///
+///
/// Will truncate a path to only show the last `length` components in a path.
/// If a length of `0` is provided, the path will not be truncated.
fn truncate(dir_string: String, length: usize) -> String {