Skip to content

Commit 73699f2

Browse files
committed
fix: lint issues
Signed-off-by: Courtcircuits <[email protected]>
1 parent 4824652 commit 73699f2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

compiler-cli/src/publish.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ fn metadata_config<'a>(
553553
.iter()
554554
.map(|l| (l.title.as_str(), l.href.clone()))
555555
.filter(|(_, href)| !href.clone().is_internal())
556-
.map(|(title, href)| (title, href.as_uri().unwrap()))
556+
.map(|(title, href)| (title, href.as_uri().expect("Internal link not marked as internal")))
557557
.chain(repo_url.into_iter().map(|u| ("Repository", u)))
558558
.collect();
559559

@@ -564,7 +564,7 @@ fn metadata_config<'a>(
564564
source_files,
565565
generated_files,
566566
licenses: &config.licences,
567-
links: links,
567+
links,
568568
requirements: requirements?,
569569
build_tools: vec!["gleam"],
570570
}

compiler-core/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,7 @@ impl Href {
10011001
pub fn is_internal(&self) -> bool {
10021002
match self {
10031003
Href::Internal(_) => true,
1004-
_ => false,
1004+
Href::External(_) => false,
10051005
}
10061006
}
10071007

0 commit comments

Comments
 (0)