@@ -29,7 +29,7 @@ class RustPlugin {
29
29
this . servicePath = this . serverless . config . servicePath || "" ;
30
30
this . hooks = {
31
31
"before:package:createDeploymentArtifacts" : this . build . bind ( this ) ,
32
- "before:deploy:function:packageFunction" : this . build . bind ( this )
32
+ "before:deploy:function:packageFunction" : this . build . bind ( this ) ,
33
33
} ;
34
34
if ( includeInvokeHook ( serverless . version ) ) {
35
35
this . hooks [ "before:invoke:local:invoke" ] = this . build . bind ( this ) ;
@@ -38,7 +38,7 @@ class RustPlugin {
38
38
{
39
39
cargoFlags : "" ,
40
40
dockerTag : DEFAULT_DOCKER_TAG ,
41
- dockerImage : DEFAULT_DOCKER_IMAGE
41
+ dockerImage : DEFAULT_DOCKER_IMAGE ,
42
42
} ,
43
43
( this . serverless . service . custom && this . serverless . service . custom . rust ) ||
44
44
{ }
@@ -71,7 +71,7 @@ class RustPlugin {
71
71
`-v` ,
72
72
`${ cargoRegistry } :/root/.cargo/registry` ,
73
73
`-v` ,
74
- `${ cargoDownloads } :/root/.cargo/git`
74
+ `${ cargoDownloads } :/root/.cargo/git` ,
75
75
] ;
76
76
const customArgs = ( process . env [ "SLS_DOCKER_ARGS" ] || "" ) . split ( " " ) || [ ] ;
77
77
@@ -97,8 +97,8 @@ class RustPlugin {
97
97
const finalArgs = [
98
98
...defaultArgs ,
99
99
...customArgs ,
100
- `${ dockerImage } :${ dockerTag } `
101
- ] . filter ( i => i ) ;
100
+ `${ dockerImage } :${ dockerTag } ` ,
101
+ ] . filter ( ( i ) => i ) ;
102
102
103
103
this . serverless . cli . log (
104
104
`Running container build with: ${ dockerCLI } , args: ${ finalArgs } .`
@@ -121,7 +121,7 @@ class RustPlugin {
121
121
return ;
122
122
}
123
123
let rustFunctionsFound = false ;
124
- this . functions ( ) . forEach ( funcName => {
124
+ this . functions ( ) . forEach ( ( funcName ) => {
125
125
const func = service . getFunction ( funcName ) ;
126
126
const runtime = func . runtime || service . provider . runtime ;
127
127
if ( runtime != RUST_RUNTIME ) {
0 commit comments