Update docs.
This commit is contained in:
@@ -84,7 +84,7 @@ fn test_array_with_structs() -> Result<(), Box<EvalAltResult>> {
|
||||
}
|
||||
|
||||
fn new() -> Self {
|
||||
TestStruct { x: 1 }
|
||||
Self { x: 1 }
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -51,7 +51,7 @@ fn test_struct_with_float() -> Result<(), Box<EvalAltResult>> {
|
||||
}
|
||||
|
||||
fn new() -> Self {
|
||||
TestStruct { x: 1.0 }
|
||||
Self { x: 1.0 }
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -25,7 +25,7 @@ fn test_get_set() -> Result<(), Box<EvalAltResult>> {
|
||||
}
|
||||
|
||||
fn new() -> Self {
|
||||
TestStruct {
|
||||
Self {
|
||||
x: 1,
|
||||
y: 0,
|
||||
array: vec![1, 2, 3, 4, 5],
|
||||
|
@@ -15,7 +15,7 @@ fn test_method_call() -> Result<(), Box<EvalAltResult>> {
|
||||
}
|
||||
|
||||
fn new() -> Self {
|
||||
TestStruct { x: 1 }
|
||||
Self { x: 1 }
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -20,7 +20,7 @@ fn test_mismatched_op_custom_type() {
|
||||
|
||||
impl TestStruct {
|
||||
fn new() -> Self {
|
||||
TestStruct { x: 1 }
|
||||
Self { x: 1 }
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user