File tree Expand file tree Collapse file tree 3 files changed +2
-12
lines changed
migrations/20170711193021_rerename_gitlab Expand file tree Collapse file tree 3 files changed +2
-12
lines changed Original file line number Diff line number Diff line change
1
+ UPDATE badges SET badge_type = replace(badge_type, ' gitlab' , ' git-lab' );
Original file line number Diff line number Diff line change
1
+ UPDATE badges SET badge_type = replace(badge_type, ' git-lab' , ' gitlab' );
Original file line number Diff line number Diff line change @@ -58,18 +58,6 @@ impl Badge {
58
58
serde_json:: from_value ( serde_json:: to_value ( self ) . unwrap ( ) ) . unwrap ( )
59
59
}
60
60
61
- pub fn badge_type ( & self ) -> & ' static str {
62
- match * self {
63
- Badge :: TravisCi { .. } => "travis-ci" ,
64
- Badge :: Appveyor { .. } => "appveyor" ,
65
- Badge :: GitLab { .. } => "gitlab" ,
66
- Badge :: IsItMaintainedIssueResolution { .. } => "is-it-maintained-issue-resolution" ,
67
- Badge :: IsItMaintainedOpenIssues { .. } => "is-it-maintained-open-issues" ,
68
- Badge :: Codecov { .. } => "codecov" ,
69
- Badge :: Coveralls { .. } => "coveralls" ,
70
- }
71
- }
72
-
73
61
pub fn update_crate < ' a > (
74
62
conn : & PgConnection ,
75
63
krate : & Crate ,
You can’t perform that action at this time.
0 commit comments