Skip to content

Commit cb21229

Browse files
committed
Auto merge of #1458 - alexcrichton:update, r=alexcrichton
Down with as_slice!
2 parents 11507dd + 964e72f commit cb21229

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+641
-602
lines changed

Cargo.lock

Lines changed: 75 additions & 75 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ git2 = "0.2.1"
1919
git2-curl = "0.2.1"
2020
glob = "0.2.2"
2121
time = "0.1.19"
22-
log = "0.2.5"
23-
env_logger = "0.2.2"
22+
log = "0.3.0"
23+
env_logger = "0.3"
2424
docopt = "0.6.45"
2525
url = "0.2.23"
2626
rustc-serialize = "0.3.1"

src/bin/cargo.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#![feature(core, exit_status, fs_ext)]
22

3-
extern crate "git2-curl" as git2_curl;
4-
extern crate "rustc-serialize" as rustc_serialize;
53
extern crate cargo;
64
extern crate env_logger;
5+
extern crate git2_curl;
6+
extern crate rustc_serialize;
77
extern crate toml;
88
#[macro_use] extern crate log;
99

src/cargo/core/dependency.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ impl Dependency {
6767
pub fn source_id(&self) -> &SourceId { &self.source_id }
6868
pub fn kind(&self) -> Kind { self.kind }
6969
pub fn specified_req(&self) -> Option<&str> {
70-
self.specified_req.as_ref().map(|s| s.as_slice())
70+
self.specified_req.as_ref().map(|s| &s[..])
7171
}
7272

7373
/// If none, this dependencies must be built for all platforms.
7474
/// If some, it must only be built for the specified platform.
7575
pub fn only_for_platform(&self) -> Option<&str> {
76-
self.only_for_platform.as_ref().map(|s| s.as_slice())
76+
self.only_for_platform.as_ref().map(|s| &s[..])
7777
}
7878

7979
pub fn set_kind(mut self, kind: Kind) -> Dependency {

src/cargo/core/manifest.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ impl Manifest {
214214
pub fn warnings(&self) -> &[String] { &self.warnings }
215215
pub fn profiles(&self) -> &Profiles { &self.profiles }
216216
pub fn links(&self) -> Option<&str> {
217-
self.links.as_ref().map(|s| s.as_slice())
217+
self.links.as_ref().map(|s| &s[..])
218218
}
219219

220220
pub fn add_warning(&mut self, s: String) {
@@ -235,7 +235,7 @@ impl Target {
235235
Target {
236236
kind: TargetKind::Bin,
237237
name: String::new(),
238-
src_path: PathBuf::new(""),
238+
src_path: PathBuf::new(),
239239
metadata: None,
240240
doc: false,
241241
doctest: false,

0 commit comments

Comments
 (0)