Skip to content

Commit

Permalink
Add Debug to things
Browse files Browse the repository at this point in the history
  • Loading branch information
shepmaster committed Jun 8, 2017
1 parent 401857f commit 3264a05
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/krate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ use util::{RequestUtils, CargoResult, internal, ChainError, human};
use version::{EncodableVersion, NewVersion, BuildInfo, EncodableMaxBuildInfo};
use {Model, User, Keyword, Version, Category, Badge, Replica};

#[derive(Clone, Queryable, Identifiable, AsChangeset)]
#[derive(Debug, Clone, Queryable, Identifiable, AsChangeset)]
pub struct Crate {
pub id: i32,
pub name: String,
Expand Down
2 changes: 1 addition & 1 deletion src/tests/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ fn publish_build_info() {
"/api/v1/crates/publish-build-info/1.0.0/build_info")
.with_method(Method::Get)));

#[derive(RustcDecodable)]
#[derive(Debug, RustcDecodable)]
struct R { build_info: EncodableBuildInfo }

let json = ::json::<R>(&mut response);
Expand Down
2 changes: 1 addition & 1 deletion src/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ pub struct BuildInfo {

pub const BUILD_INFO_FIELDS: (build_info::version_id, build_info::rust_version, build_info::target, build_info::passed) = (build_info::version_id, build_info::rust_version, build_info::target, build_info::passed);

#[derive(RustcEncodable, RustcDecodable, Default)]
#[derive(Debug, RustcEncodable, RustcDecodable, Default)]
pub struct EncodableBuildInfo {
id: i32,
pub ordering: HashMap<String, Vec<String>>,
Expand Down

0 comments on commit 3264a05

Please sign in to comment.