This commit is contained in:
Lynne Megido 2021-10-06 00:26:04 +10:00
parent ce79cf14ba
commit 6d32beedcc
Signed by: lynnesbian
GPG key ID: F0A184B5213D9F90

View file

@ -1,5 +1,4 @@
#![forbid(unsafe_code)]
#![warn(trivial_casts, unused_lifetimes, unused_qualifications)]
// SPDX-FileCopyrightText: 2021 Lynnesbian
// SPDX-License-Identifier: LGPL-3.0-or-later
@ -33,10 +32,10 @@ cfg_if! {
cfg_if! {
if #[cfg(any(all(unix, feature = "infer-backend"), all(not(unix), not(feature = "xdg-mime-backend"))))] {
/// A [Lazy] holding an instance of [mime_db::MimeDb].
/// A [`Lazy`] holding an instance of [`mime_db::MimeDb`].
pub static MIMEDB: Lazy<mime_db::InferDb> = Lazy::new(crate::mime_db::InferDb::init);
} else {
/// A [Lazy] holding an instance of [mime_db::MimeDb].
/// A [`Lazy`] holding an instance of [`mime_db::MimeDb`].
pub static MIMEDB: Lazy<mime_db::XdgDb> = Lazy::new(crate::mime_db::XdgDb::init);
}
}