Skip to content

Commit 19cbfa9

Browse files
author
Richard Dodd
committed
Fix tests
1 parent 035ad18 commit 19cbfa9

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ string_cache_shared = {path = "./shared", version = "0.3"}
3737

3838
[dev-dependencies]
3939
rand = "0.4"
40+
string_cache_codegen = { version = "0.4", path = "./string-cache-codegen" }
4041

4142
[build-dependencies]
4243
string_cache_codegen = { version = "0.4", path = "./string-cache-codegen" }

examples/simple.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
extern crate string_cache;
22

3-
use string_cache::{DefaultAtom, Atom};
3+
use string_cache::DefaultAtom;
44

55
fn main() {
66

src/lib.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
//! ```
3333
//!
3434
//! In `build.rs`:
35-
//! ```rust
35+
//! ```
3636
//! extern crate string_cache_codegen;
3737
//!
3838
//! use std::env;
@@ -47,7 +47,7 @@
4747
//! ```
4848
//!
4949
//! In `lib.rs`:
50-
//! ```rust
50+
//! ```ignore
5151
//! extern crate string_cache;
5252
//!
5353
//! mod foo {
@@ -70,9 +70,11 @@
7070
//!
7171
//! ## No compile-time atoms
7272
//!
73-
//! ```rust
73+
//! ```
7474
//! extern crate string_cache;
7575
//!
76+
//! use string_cache::DefaultAtom;
77+
//!
7678
//!
7779
//! let mut interned_stuff = Vec::new();
7880
//! let text = "here is a sentence of text that will be tokenised and

0 commit comments

Comments
 (0)