Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
150 changes: 75 additions & 75 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ git2 = "0.2.1"
git2-curl = "0.2.1"
glob = "0.2.2"
time = "0.1.19"
log = "0.2.5"
env_logger = "0.2.2"
log = "0.3.0"
env_logger = "0.3"
docopt = "0.6.45"
url = "0.2.23"
rustc-serialize = "0.3.1"
Expand Down
4 changes: 2 additions & 2 deletions src/bin/cargo.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#![feature(core, exit_status, fs_ext)]

extern crate "git2-curl" as git2_curl;
extern crate "rustc-serialize" as rustc_serialize;
extern crate cargo;
extern crate env_logger;
extern crate git2_curl;
extern crate rustc_serialize;
extern crate toml;
#[macro_use] extern crate log;

Expand Down
4 changes: 2 additions & 2 deletions src/cargo/core/dependency.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ impl Dependency {
pub fn source_id(&self) -> &SourceId { &self.source_id }
pub fn kind(&self) -> Kind { self.kind }
pub fn specified_req(&self) -> Option<&str> {
self.specified_req.as_ref().map(|s| s.as_slice())
self.specified_req.as_ref().map(|s| &s[..])
}

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

pub fn set_kind(mut self, kind: Kind) -> Dependency {
Expand Down
4 changes: 2 additions & 2 deletions src/cargo/core/manifest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ impl Manifest {
pub fn warnings(&self) -> &[String] { &self.warnings }
pub fn profiles(&self) -> &Profiles { &self.profiles }
pub fn links(&self) -> Option<&str> {
self.links.as_ref().map(|s| s.as_slice())
self.links.as_ref().map(|s| &s[..])
}

pub fn add_warning(&mut self, s: String) {
Expand All @@ -235,7 +235,7 @@ impl Target {
Target {
kind: TargetKind::Bin,
name: String::new(),
src_path: PathBuf::new(""),
src_path: PathBuf::new(),
metadata: None,
doc: false,
doctest: false,
Expand Down
Loading