Skip to content

Commit 7c3fcee

Browse files
committed
Bump to 0.7.1
1 parent 46c7149 commit 7c3fcee

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22

33
name = "conduit-static"
4-
version = "0.7.0"
4+
version = "0.7.1"
55
authors = ["[email protected]",
66
"Alex Crichton <[email protected]>"]
77
description = "Middleware for serving static files for conduit"

examples/simple-file-server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
extern crate civet;
22
extern crate conduit;
3-
extern crate "conduit-static" as conduit_static;
3+
extern crate conduit_static;
44

55
use std::env;
66
use std::sync::mpsc::channel;

src/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
#![feature(core, fs_time, std_misc)]
1+
#![feature(fs_time, convert)]
22
#![cfg_attr(test, deny(warnings))]
33

44
extern crate conduit;
5-
extern crate "conduit-mime-types" as mime;
5+
extern crate conduit_mime_types as mime;
66
extern crate time;
77
#[cfg(test)] extern crate tempdir;
88

99
use std::collections::HashMap;
1010
use std::error::Error;
1111
use std::io;
1212
use std::io::prelude::*;
13-
use std::path::{PathBuf, AsPath};
13+
use std::path::{PathBuf, Path};
1414
use std::fs::File;
1515
use conduit::{Request, Response, Handler};
1616

@@ -20,9 +20,9 @@ pub struct Static {
2020
}
2121

2222
impl Static {
23-
pub fn new<P: AsPath + ?Sized>(path: &P) -> Static {
23+
pub fn new<P: AsRef<Path>>(path: P) -> Static {
2424
Static {
25-
path: path.as_path().to_path_buf(),
25+
path: path.as_ref().to_path_buf(),
2626
types: mime::Types::new()
2727
.ok().expect("Couldn't load mime-types")
2828
}
@@ -76,7 +76,7 @@ fn not_found() -> Response {
7676

7777
#[cfg(test)]
7878
mod tests {
79-
extern crate "conduit-test" as test;
79+
extern crate conduit_test as test;
8080

8181
use std::fs::{self, File};
8282
use std::io::prelude::*;

0 commit comments

Comments
 (0)