Skip to content
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

fix panic in get_mime_extensions_str #60

Merged
merged 2 commits into from
Aug 26, 2020

Conversation

ririsoft
Copy link
Contributor

@ririsoft ririsoft commented Jun 11, 2020

Hello,

get_mime_extensions_str should not panic if the mime type does not contains '/' and return None instead.

Thank you very much in advance for your merge.
Cheers !

get_mime_extensions_str should not panic
if the mime type does not contains '/' and return None
instead.
@ririsoft ririsoft mentioned this pull request Jul 20, 2020
@ririsoft
Copy link
Contributor Author

ririsoft commented Jul 24, 2020

@abonander : what do you think about this PR please ?
Cheers!

src/lib.rs Outdated Show resolved Hide resolved
@abonander abonander merged commit e8aca92 into abonander:master Aug 26, 2020
@abonander
Copy link
Owner

Thanks!

@ririsoft
Copy link
Contributor Author

Thanks!

You are welcome, happy to see you back here.

There are several crates working with mime types, with different angles but also with common objectives.
We (@paolobarbolini and myself) started to discuss synergies and eventual merges. It would be really great that you give your opinion on the issue opened on Infer side. It looks like @fundon from mime-db is also open to discussion.

Cheers.

@ririsoft ririsoft deleted the get_mime_extensions_str_panic branch August 26, 2020 06:52
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.

None yet

2 participants