diff --git a/src/input.rs b/src/input.rs index 943e447..051d7e9 100644 --- a/src/input.rs +++ b/src/input.rs @@ -1,7 +1,7 @@ /* * SimpleByteUnit * - * Copyright 2023 Xavier R.M. + * Copyright (C) 2023-2025 Xavier Moffett * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/lib.rs b/src/lib.rs index a3b1c8e..ad68b14 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,7 +1,7 @@ /* * SimpleByteUnit * - * Copyright 2023 Xavier R.M. + * Copyright (C) 2023-2025 Xavier Moffett * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/output.rs b/src/output.rs index c387dd0..29a18fb 100644 --- a/src/output.rs +++ b/src/output.rs @@ -1,7 +1,7 @@ /* * SimpleByteUnit * - * Copyright 2023 Xavier R.M. + * Copyright (C) 2023-2025 Xavier Moffett * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -43,7 +43,7 @@ pub fn arithmetic(value: (T, f64), power_of: i8) -> (i8, f64) where i64 let mut power = 0; while bytes >= diviser && power < power_of { - bytes = bytes / diviser; + bytes /= diviser; power += 1; } diff --git a/src/simplebyteunit.rs b/src/simplebyteunit.rs index 5cb2e30..475978a 100644 --- a/src/simplebyteunit.rs +++ b/src/simplebyteunit.rs @@ -1,7 +1,7 @@ /* * SimpleByteUnit - * - * Copyright 2023 Xavier R.M. + * + * Copyright (C) 2023-2025 Xavier Moffett * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/test.rs b/src/test.rs index 9c3d1ef..88ac756 100644 --- a/src/test.rs +++ b/src/test.rs @@ -1,7 +1,7 @@ /* * SimpleByteUnit - * - * Copyright 2023 Xavier R.M. + * + * Copyright (C) 2023-2025 Xavier Moffett * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -9,10 +9,7 @@ * * http://www.apache.org/licenses/LICENSE-2.0 */ - -#![allow(dead_code,unused_imports)] - -use super::simplebyteunit::*; +use crate::simplebyteunit::*; const POSITIVE_5B: i64 = 5000; const NEGATIVE_5B: i64 = -5000;