Skip to content

Commit

Permalink
no unwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
Nutomic committed Jun 27, 2023
1 parent 9785714 commit fc2b87a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/db_schema/src/source/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,7 @@ pub mod tagline;
/// This is necessary so they can be successfully deserialized from API responses, even though the
/// value is not sent by Lemmy. Necessary for crates which rely on Rust API such as lemmy-stats-crawler.
fn placeholder_apub_url() -> DbUrl {
DbUrl(Box::new(Url::parse("http://example.com").unwrap()))
DbUrl(Box::new(
Url::parse("http://example.com").expect("parse placeholer url"),
))
}

0 comments on commit fc2b87a

Please sign in to comment.