|
1 | 1 | /*
|
2 | 2 | * Copyright 2023 Lexi Robinson
|
3 |
| - * |
4 |
| - * Licensed under the Apache License, Version 2.0 (the "License"); |
5 |
| - * you may not use this file except in compliance with the License. |
6 |
| - * You may obtain a copy of the License at |
7 |
| - * |
8 |
| - * http://www.apache.org/licenses/LICENSE-2.0 |
9 |
| - * |
10 |
| - * Unless required by applicable law or agreed to in writing, software |
11 |
| - * distributed under the License is distributed on an "AS IS" BASIS, |
12 |
| - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
13 |
| - * See the License for the specific language governing permissions and |
14 |
| - * limitations under the License. |
| 3 | + * Licensed under the EUPL-1.2 |
15 | 4 | *
|
16 | 5 | * Much of the code in this file is based on code from the rSCADA/libmbus
|
17 | 6 | * project by Raditex Control AB (c) 2010-2012
|
@@ -48,7 +37,9 @@ pub fn unpack_manufacturer_code(packed: u16) -> Result<String> {
|
48 | 37 |
|
49 | 38 | const fn pack_manufacturer_code(code: &'static str) -> u16 {
|
50 | 39 | let code = code.as_bytes();
|
51 |
| - let [a, b, c] = *code else { panic!("Code must be 3 bytes") }; |
| 40 | + let [a, b, c] = *code else { |
| 41 | + panic!("Code must be 3 bytes") |
| 42 | + }; |
52 | 43 | assert!(
|
53 | 44 | (a as char).is_ascii_uppercase()
|
54 | 45 | && (b as char).is_ascii_uppercase()
|
|
0 commit comments