General code improvements
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
This commit is contained in:
@@ -42,7 +42,7 @@ impl Flow {
|
||||
pub fn context_id(&self) -> u32 {
|
||||
self.context_id
|
||||
}
|
||||
pub fn jobs(&self) -> &Vec<u32> {
|
||||
pub fn jobs(&self) -> &[u32] {
|
||||
&self.jobs
|
||||
}
|
||||
}
|
||||
|
@@ -47,10 +47,10 @@ impl Job {
|
||||
pub fn context_id(&self) -> u32 {
|
||||
self.context_id
|
||||
}
|
||||
pub fn depends(&self) -> &Vec<u32> {
|
||||
pub fn depends(&self) -> &[u32] {
|
||||
&self.depends
|
||||
}
|
||||
pub fn prerequisites(&self) -> &Vec<String> {
|
||||
pub fn prerequisites(&self) -> &[String] {
|
||||
&self.prerequisites
|
||||
}
|
||||
pub fn script_type(&self) -> ScriptType {
|
||||
|
Reference in New Issue
Block a user