Skip to content

Commit cb749c3

Browse files
committed
chore: Fix clippy and license checks
1 parent a1867cf commit cb749c3

File tree

2 files changed

+22
-6
lines changed

2 files changed

+22
-6
lines changed

avro/src/serde/ser_schema.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3823,8 +3823,7 @@ mod tests {
38233823
let read_avro_value = reader.next().unwrap()?;
38243824
assert_eq!(
38253825
&read_avro_value, &expected,
3826-
"serialization is not correct: expected: {:?}, got: {:?}, input: {:?}",
3827-
expected, read_avro_value, input
3826+
"serialization is not correct: expected: {expected:?}, got: {read_avro_value:?}, input: {input:?}",
38283827
);
38293828
Ok(())
38303829
}

avro/tests/nullable_union.rs

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
// Licensed to the Apache Software Foundation (ASF) under one
2+
// or more contributor license agreements. See the NOTICE file
3+
// distributed with this work for additional information
4+
// regarding copyright ownership. The ASF licenses this file
5+
// to you under the Apache License, Version 2.0 (the
6+
// "License"); you may not use this file except in compliance
7+
// with the License. You may obtain a copy of the License at
8+
//
9+
// http://www.apache.org/licenses/LICENSE-2.0
10+
//
11+
// Unless required by applicable law or agreed to in writing,
12+
// software distributed under the License is distributed on an
13+
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
// KIND, either express or implied. See the License for the
15+
// specific language governing permissions and limitations
16+
// under the License.
17+
118
use apache_avro::{AvroResult, Reader, Schema, Writer, from_value, types::Value};
219
use serde::de::DeserializeOwned;
320
use serde::{Deserialize, Serialize};
@@ -19,8 +36,8 @@ where
1936
let read_avro_value = reader.next().unwrap()?;
2037
assert_eq!(
2138
&read_avro_value, test_case.expected_avro,
22-
"serialization is not correct: expected: {:?}, got: {:?}, input: {:?}",
23-
test_case.expected_avro, read_avro_value, test_case.input
39+
"serialization is not correct: expected: {:?}, got: {read_avro_value:?}, input: {:?}",
40+
test_case.expected_avro, test_case.input
2441
);
2542
Ok(())
2643
}
@@ -32,8 +49,8 @@ where
3249
let deserialized: T = from_value(test_case.expected_avro)?;
3350
assert_eq!(
3451
deserialized, test_case.input,
35-
"deserialization is not correct: expected: {:?}, got: {:?}",
36-
test_case.input, deserialized,
52+
"deserialization is not correct: expected: {:?}, got: {deserialized:?}",
53+
test_case.input,
3754
);
3855
Ok(())
3956
}

0 commit comments

Comments
 (0)