Browse Source

cleanup

master
Lynne Megido 2 months ago
parent
commit
6d32beedcc
Signed by: lynnesbian
GPG Key ID: F0A184B5213D9F90
  1. 5
      src/lib.rs

5
src/lib.rs

@ -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);
}
}

Loading…
Cancel
Save