Fixed Tests.

This commit is contained in:
Ayush Singh 2022-01-04 19:28:00 +05:30
parent afc034d924
commit f04b01d5c8
3 changed files with 4 additions and 3 deletions

View file

@ -24,6 +24,7 @@ kde_frameworks = "0.1"
[dev-dependencies] [dev-dependencies]
lazy_static = "1.4" lazy_static = "1.4"
cstr = "0.2"
[package.metadata.docs.rs] [package.metadata.docs.rs]
dependencies = ["qtbase5-dev", "qtdeclarative5-dev", "libkf5i18n-dev"] dependencies = ["qtbase5-dev", "qtdeclarative5-dev", "libkf5i18n-dev"]

View file

@ -35,7 +35,7 @@ The crate searches from KF5I18n using either the environment variables (`KF_VERS
```rust ```rust
use cstr::cstr; use cstr::cstr;
use qmetaobject::prelude::*; use qmetaobject::prelude::*;
use ki18n::KLocalizedContext; use ki18n::klocalizedcontext::KLocalizedContext;
fn main() { fn main() {
let mut engine = QmlEngine::new(); let mut engine = QmlEngine::new();

View file

@ -28,10 +28,10 @@
//! //!
//! //!
//! # Example //! # Example
//! ```rust //! ```no_run
//! use cstr::cstr; //! use cstr::cstr;
//! use qmetaobject::prelude::*; //! use qmetaobject::prelude::*;
//! use ki18n::KLocalizedContext; //! use ki18n::klocalizedcontext::KLocalizedContext;
//! //!
//! fn main() { //! fn main() {
//! let mut engine = QmlEngine::new(); //! let mut engine = QmlEngine::new();