Skip to content

Commit 68fe50c

Browse files
committed
fix: lint issues
Signed-off-by: Courtcircuits <[email protected]>
1 parent da43ad0 commit 68fe50c

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
@@ -528,7 +528,7 @@ fn metadata_config<'a>(
528528
.iter()
529529
.map(|l| (l.title.as_str(), l.href.clone()))
530530
.filter(|(_, href)| !href.clone().is_internal())
531-
.map(|(title, href)| (title, href.as_uri().unwrap()))
531+
.map(|(title, href)| (title, href.as_uri().expect("Internal link not marked as internal")))
532532
.chain(repo_url.into_iter().map(|u| ("Repository", u)))
533533
.collect();
534534

@@ -539,7 +539,7 @@ fn metadata_config<'a>(
539539
source_files,
540540
generated_files,
541541
licenses: &config.licences,
542-
links: links,
542+
links,
543543
requirements: requirements?,
544544
build_tools: vec!["gleam"],
545545
}

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)