Skip to content

some more minor fixes #76

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 20 commits into from
Closed

some more minor fixes #76

wants to merge 20 commits into from

Conversation

tinaun
Copy link
Contributor

@tinaun tinaun commented Jan 26, 2021

  • actually fix crates without descriptions
  • support searching for items in non-std crates

src/crates.rs Outdated
@@ -48,7 +50,7 @@ pub fn search(args: Args) -> Result<(), Error> {
m.embed(|e| {
e.title(&krate.name)
.url(format!("https://crates.io/crates/{}", krate.id))
.description(&krate.description)
.description(krate.description.as_ref().map_or("", |e| e.as_str()))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

couldn't this be &krate.description.unwrap_or_default()?

@tinaun tinaun closed this Jun 17, 2021
@tinaun tinaun deleted the desc-fixes branch June 17, 2021 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants