Skip to content

Commit

Permalink
do Copy again
Browse files Browse the repository at this point in the history
  • Loading branch information
preyasshah committed Jul 22, 2024
1 parent a3b5806 commit 327f82a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion martian-lab/examples/sum_sq/src/sum_squares.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ impl MartianStage for SumSquares {
for value in args.values {
let chunk_inputs = SumSquaresChunkInputs { value };
// It is optional to create a chunk with resource. If not specified, default resource will be used
stage_def.add_chunk_with_resource(chunk_inputs, chunk_resource.clone());
stage_def.add_chunk_with_resource(chunk_inputs, chunk_resource);
}
// Return the stage definition
Ok(stage_def)
Expand Down
4 changes: 2 additions & 2 deletions martian/src/stage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ impl<T: MartianFileType> MartianMakePath for T {
///
/// Memory/ thread request can be negative in matrian. See
/// [http://martian-lang.org/advanced-features/#resource-consumption](http://martian-lang.org/advanced-features/#resource-consumption)
#[derive(Debug, Serialize, Deserialize, Clone, Default)]
#[derive(Debug, Serialize, Deserialize, Copy, Clone, Default)]
pub struct Resource {
#[serde(rename = "__mem_gb", skip_serializing_if = "Option::is_none")]
mem_gb: Option<isize>,
Expand Down Expand Up @@ -637,7 +637,7 @@ pub trait MartianStage: MroMaker {
fill_defaults(resource),
))
}
let rover = _chunk_prelude(chunk_idx, run_directory, chunk.resource.clone())?;
let rover = _chunk_prelude(chunk_idx, run_directory, chunk.resource)?;
self.main(args.clone(), chunk.inputs.clone(), rover)
};

Expand Down

0 comments on commit 327f82a

Please sign in to comment.