Skip to content

Commit 3264a05

Browse files
committed
Add Debug to things
1 parent 401857f commit 3264a05

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/krate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ use util::{RequestUtils, CargoResult, internal, ChainError, human};
3838
use version::{EncodableVersion, NewVersion, BuildInfo, EncodableMaxBuildInfo};
3939
use {Model, User, Keyword, Version, Category, Badge, Replica};
4040

41-
#[derive(Clone, Queryable, Identifiable, AsChangeset)]
41+
#[derive(Debug, Clone, Queryable, Identifiable, AsChangeset)]
4242
pub struct Crate {
4343
pub id: i32,
4444
pub name: String,

src/tests/version.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ fn publish_build_info() {
143143
"/api/v1/crates/publish-build-info/1.0.0/build_info")
144144
.with_method(Method::Get)));
145145

146-
#[derive(RustcDecodable)]
146+
#[derive(Debug, RustcDecodable)]
147147
struct R { build_info: EncodableBuildInfo }
148148

149149
let json = ::json::<R>(&mut response);

src/version.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ pub struct BuildInfo {
9797

9898
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);
9999

100-
#[derive(RustcEncodable, RustcDecodable, Default)]
100+
#[derive(Debug, RustcEncodable, RustcDecodable, Default)]
101101
pub struct EncodableBuildInfo {
102102
id: i32,
103103
pub ordering: HashMap<String, Vec<String>>,

0 commit comments

Comments
 (0)