summaryrefslogtreecommitdiff
path: root/src/util.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-07-31 08:24:24 +0000
committerLars Wirzenius <liw@liw.fi>2022-07-31 08:24:24 +0000
commit65c453b9b8499eb4a273bfd6f013608b9af23844 (patch)
treeca7932482c933447f96004673e284c94ee86f07d /src/util.rs
parentbc9493725346d909c305fcaacd06c448e303cd05 (diff)
parentec41f376c51ad990c67015829d24daba65cd2538 (diff)
downloadriki-65c453b9b8499eb4a273bfd6f013608b9af23844.tar.gz
Merge branch 'definition-lists' into 'main'
detect definition lists, fail if found Closes #5 See merge request larswirzenius/riki!29
Diffstat (limited to 'src/util.rs')
-rw-r--r--src/util.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/util.rs b/src/util.rs
index fbf81f6..e1f82b3 100644
--- a/src/util.rs
+++ b/src/util.rs
@@ -84,12 +84,18 @@ mod test {
#[test]
fn joins_relative() {
- assert_eq!(join_subpath(Path::new("foo"), Path::new("bar")), PathBuf::from("foo/bar"));
+ assert_eq!(
+ join_subpath(Path::new("foo"), Path::new("bar")),
+ PathBuf::from("foo/bar")
+ );
}
#[test]
fn joins_absolute() {
- assert_eq!(join_subpath(Path::new("foo"), Path::new("/bar")), PathBuf::from("foo/bar"));
+ assert_eq!(
+ join_subpath(Path::new("foo"), Path::new("/bar")),
+ PathBuf::from("foo/bar")
+ );
}
#[test]