File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
cargo-near-build/src/types/near Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 22use std:: io:: IsTerminal ;
33
44#[ cfg( feature = "docker" ) ]
5- #[ derive( Debug , Clone , Copy ) ]
5+ #[ derive( Debug , Clone , Copy , Default ) ]
66pub enum BuildContext {
7+ #[ default]
78 Build ,
8- Deploy { skip_git_remote_check : bool } ,
9+ Deploy {
10+ skip_git_remote_check : bool ,
11+ } ,
912}
1013
1114/// argument of [`build_with_cli`](crate::build_with_cli) function
Original file line number Diff line number Diff line change @@ -28,12 +28,6 @@ pub struct Opts {
2828 pub context : BuildContext ,
2929}
3030
31- impl Default for BuildContext {
32- fn default ( ) -> Self {
33- Self :: Build
34- }
35- }
36-
3731pub const WARN_BECOMES_ERR : & str =
3832 "This WARNING becomes a hard ERROR when deploying contract with docker." ;
3933
You can’t perform that action at this time.
0 commit comments