Fixed Tests.
This commit is contained in:
parent
afc034d924
commit
f04b01d5c8
|
@ -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"]
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue