From f04b01d5c8846f31fc3fb52fdf573c59291278e1 Mon Sep 17 00:00:00 2001 From: Ayush Singh Date: Tue, 4 Jan 2022 19:28:00 +0530 Subject: [PATCH] Fixed Tests. --- Cargo.toml | 1 + README.md | 2 +- src/lib.rs | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 238b034..a6a45d7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,6 +24,7 @@ kde_frameworks = "0.1" [dev-dependencies] lazy_static = "1.4" +cstr = "0.2" [package.metadata.docs.rs] dependencies = ["qtbase5-dev", "qtdeclarative5-dev", "libkf5i18n-dev"] diff --git a/README.md b/README.md index ca6ab83..3bcb9cd 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ The crate searches from KF5I18n using either the environment variables (`KF_VERS ```rust use cstr::cstr; use qmetaobject::prelude::*; -use ki18n::KLocalizedContext; +use ki18n::klocalizedcontext::KLocalizedContext; fn main() { let mut engine = QmlEngine::new(); diff --git a/src/lib.rs b/src/lib.rs index e105a3b..7197886 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -28,10 +28,10 @@ //! //! //! # Example -//! ```rust +//! ```no_run //! use cstr::cstr; //! use qmetaobject::prelude::*; -//! use ki18n::KLocalizedContext; +//! use ki18n::klocalizedcontext::KLocalizedContext; //! //! fn main() { //! let mut engine = QmlEngine::new();