Skip to content

Commit 2c122dd

Browse files
B-Reifiliekturtles
authored andcommitted
Update links to https
Many links are currently broken. This PR updates the links to use https:// which fixes them.
1 parent f0aa415 commit 2c122dd

13 files changed

+74
-74
lines changed

CONTRIBUTING.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ additional terms or conditions.
1414
Licensed under either of
1515

1616
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
17-
<http://www.apache.org/licenses/LICENSE-2.0>)
18-
* MIT license ([LICENSE-MIT](LICENSE-MIT) or <http://opensource.org/licenses/MIT>)
17+
<https://www.apache.org/licenses/LICENSE-2.0>)
18+
* MIT license ([LICENSE-MIT](LICENSE-MIT) or <https://opensource.org/licenses/MIT>)
1919

2020
at your option.
2121

22-
[BIPM]: http://www.bipm.org/en/about-us/
23-
[brochure]: http://www.bipm.org/en/publications/si-brochure/
24-
[si]: http://jcgm.bipm.org/vim/en/1.16.html
22+
[BIPM]: https://www.bipm.org/en/about-us/
23+
[brochure]: https://www.bipm.org/en/publications/si-brochure/
24+
[si]: https://jcgm.bipm.org/vim/en/1.16.html
2525
[nist811]: https://www.nist.gov/pml/nist-guide-si-appendix-b9-factors-units-listed-kind-quantity-or-field-science

LICENSE-APACHE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Apache License
22
Version 2.0, January 2004
3-
http://www.apache.org/licenses/
3+
https://www.apache.org/licenses/
44

55
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
66

@@ -192,7 +192,7 @@
192192
you may not use this file except in compliance with the License.
193193
You may obtain a copy of the License at
194194

195-
http://www.apache.org/licenses/LICENSE-2.0
195+
https://www.apache.org/licenses/LICENSE-2.0
196196

197197
Unless required by applicable law or agreed to in writing, software
198198
distributed under the License is distributed on an "AS IS" BASIS,

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ Units of measurement is a crate that does automatic type-safe zero-cost
1616
[climate orbiter][orbiter]!
1717

1818
[analysis]: https://en.wikipedia.org/wiki/Dimensional_analysis
19-
[si]: http://jcgm.bipm.org/vim/en/1.16.html
20-
[isq]: http://jcgm.bipm.org/vim/en/1.6.html
21-
[quantity]: http://jcgm.bipm.org/vim/en/1.1.html
22-
[measurement]: http://jcgm.bipm.org/vim/en/1.9.html
19+
[si]: https://jcgm.bipm.org/vim/en/1.16.html
20+
[isq]: https://jcgm.bipm.org/vim/en/1.6.html
21+
[quantity]: https://jcgm.bipm.org/vim/en/1.1.html
22+
[measurement]: https://jcgm.bipm.org/vim/en/1.9.html
2323
[orbiter]: https://en.wikipedia.org/wiki/Mars_Climate_Orbiter
2424

2525
## Usage
@@ -113,18 +113,18 @@ uom = {
113113
* `use_serde` -- Feature to enable support for serialization and deserialization of quantities
114114
with the [Serde][serde] crate. Disabled by default.
115115

116-
[si]: http://jcgm.bipm.org/vim/en/1.16.html
116+
[si]: https://jcgm.bipm.org/vim/en/1.16.html
117117
[serde]: https://serde.rs/
118118

119119
## Design
120-
Rather than working with [measurement units](http://jcgm.bipm.org/vim/en/1.9.html) (meter,
121-
kilometer, foot, mile, ...) `uom` works with [quantities](http://jcgm.bipm.org/vim/en/1.1.html)
120+
Rather than working with [measurement units](https://jcgm.bipm.org/vim/en/1.9.html) (meter,
121+
kilometer, foot, mile, ...) `uom` works with [quantities](https://jcgm.bipm.org/vim/en/1.1.html)
122122
(length, mass, time, ...). This simplifies usage because units are only involved at interface
123123
boundaries: the rest of your code only needs to be concerned about the quantities involved. This
124124
also makes operations on quantities (+, -, \*, /, ...) have zero runtime cost over using the raw
125125
storage type (e.g. `f32`).
126126

127-
`uom` normalizes values to the [base unit](http://jcgm.bipm.org/vim/en/1.10.html) for the quantity.
127+
`uom` normalizes values to the [base unit](https://jcgm.bipm.org/vim/en/1.10.html) for the quantity.
128128
Alternative base units can be used by executing the macro defined for the system of quantities
129129
(`ISQ!` for the SI). `uom` supports `usize`, `u8`, `u16`, `u32`, `u64`, `u128`, `isize`, `i8`,
130130
`i16`, `i32`, `i64`, `i128`, `bigint`, `biguint`, `rational`, `rational32`, `rational64`,
@@ -153,12 +153,12 @@ additional terms or conditions.
153153
Licensed under either of
154154

155155
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
156-
<http://www.apache.org/licenses/LICENSE-2.0>)
157-
* MIT license ([LICENSE-MIT](LICENSE-MIT) or <http://opensource.org/licenses/MIT>)
156+
<https://www.apache.org/licenses/LICENSE-2.0>)
157+
* MIT license ([LICENSE-MIT](LICENSE-MIT) or <https://opensource.org/licenses/MIT>)
158158

159159
at your option.
160160

161-
[BIPM]: http://www.bipm.org/en/about-us/
162-
[brochure]: http://www.bipm.org/en/publications/si-brochure/
163-
[si]: http://jcgm.bipm.org/vim/en/1.16.html
161+
[BIPM]: https://www.bipm.org/en/about-us/
162+
[brochure]: https://www.bipm.org/en/publications/si-brochure/
163+
[si]: https://jcgm.bipm.org/vim/en/1.16.html
164164
[nist811]: https://www.nist.gov/pml/nist-guide-si-appendix-b9-factors-units-listed-kind-quantity-or-field-science

src/lib.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
//! [climate orbiter][orbiter]!
88
//!
99
//! [analysis]: https://en.wikipedia.org/wiki/Dimensional_analysis
10-
//! [si]: http://jcgm.bipm.org/vim/en/1.16.html
11-
//! [isq]: http://jcgm.bipm.org/vim/en/1.6.html
12-
//! [quantity]: http://jcgm.bipm.org/vim/en/1.1.html
13-
//! [measurement]: http://jcgm.bipm.org/vim/en/1.9.html
10+
//! [si]: https://jcgm.bipm.org/vim/en/1.16.html
11+
//! [isq]: https://jcgm.bipm.org/vim/en/1.6.html
12+
//! [quantity]: https://jcgm.bipm.org/vim/en/1.1.html
13+
//! [measurement]: https://jcgm.bipm.org/vim/en/1.9.html
1414
//! [orbiter]: https://en.wikipedia.org/wiki/Mars_Climate_Orbiter
1515
//!
1616
//! ## Usage
@@ -101,18 +101,18 @@
101101
//! * `use_serde` -- Feature to enable support for serialization and deserialization of quantities
102102
//! with the [Serde][serde] crate. Disabled by default.
103103
//!
104-
//! [si]: http://jcgm.bipm.org/vim/en/1.16.html
104+
//! [si]: https://jcgm.bipm.org/vim/en/1.16.html
105105
//! [serde]: https://serde.rs/
106106
//!
107107
//! ## Design
108-
//! Rather than working with [measurement units](http://jcgm.bipm.org/vim/en/1.9.html) (meter,
109-
//! kilometer, foot, mile, ...) `uom` works with [quantities](http://jcgm.bipm.org/vim/en/1.1.html)
108+
//! Rather than working with [measurement units](https://jcgm.bipm.org/vim/en/1.9.html) (meter,
109+
//! kilometer, foot, mile, ...) `uom` works with [quantities](https://jcgm.bipm.org/vim/en/1.1.html)
110110
//! (length, mass, time, ...). This simplifies usage because units are only involved at interface
111111
//! boundaries: the rest of your code only needs to be concerned about the quantities involved.
112112
//! This also makes operations on quantities (+, -, \*, /, ...) have zero runtime cost over using
113113
//! the raw storage type (e.g. `f32`).
114114
//!
115-
//! `uom` normalizes values to the [base unit](http://jcgm.bipm.org/vim/en/1.10.html) for the
115+
//! `uom` normalizes values to the [base unit](https://jcgm.bipm.org/vim/en/1.10.html) for the
116116
//! quantity. Alternative base units can be used by executing the macro defined for the system of
117117
//! quantities (`ISQ!` for the SI). `uom` supports `usize`, `u8`, `u16`, `u32`, `u64`, `u128`,
118118
//! `isize`, `i8`, `i16`, `i32`, `i64`, `i128`, `bigint`, `biguint`, `rational`, `rational32`,
@@ -141,14 +141,14 @@
141141
//! Licensed under either of
142142
//!
143143
//! * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
144-
//! <http://www.apache.org/licenses/LICENSE-2.0>)
145-
//! * MIT license ([LICENSE-MIT](LICENSE-MIT) or <http://opensource.org/licenses/MIT>)
144+
//! <https://www.apache.org/licenses/LICENSE-2.0>)
145+
//! * MIT license ([LICENSE-MIT](LICENSE-MIT) or <https://opensource.org/licenses/MIT>)
146146
//!
147147
//! at your option.
148148
//!
149-
//! [BIPM]: http://www.bipm.org/en/about-us/
150-
//! [brochure]: http://www.bipm.org/en/publications/si-brochure/
151-
//! [si]: http://jcgm.bipm.org/vim/en/1.16.html
149+
//! [BIPM]: https://www.bipm.org/en/about-us/
150+
//! [brochure]: https://www.bipm.org/en/publications/si-brochure/
151+
//! [si]: https://jcgm.bipm.org/vim/en/1.16.html
152152
//! [nist811]: https://www.nist.gov/pml/nist-guide-si-appendix-b9-factors-units-listed-kind-quantity-or-field-science
153153
154154
// Compile with `no_std` when the `std` feature is not specified.
@@ -397,7 +397,7 @@ pub enum ConstantOp {
397397
/// ## Generic Parameters
398398
/// * `V`: Underlying storage type trait is implemented for.
399399
///
400-
/// [units]: http://jcgm.bipm.org/vim/en/1.13.html
400+
/// [units]: https://jcgm.bipm.org/vim/en/1.13.html
401401
/// [factor]: https://jcgm.bipm.org/vim/en/1.24.html
402402
pub trait Conversion<V> {
403403
/// Conversion factor type specific to the underlying storage type.

src/quantity.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@
9191
/// # }
9292
/// ```
9393
///
94-
/// [quantity]: http://jcgm.bipm.org/vim/en/1.1.html
95-
/// [measurement]: http://jcgm.bipm.org/vim/en/1.9.html
94+
/// [quantity]: https://jcgm.bipm.org/vim/en/1.1.html
95+
/// [measurement]: https://jcgm.bipm.org/vim/en/1.9.html
9696
/// [kind]: https://jcgm.bipm.org/vim/en/1.2.html
9797
#[macro_export]
9898
macro_rules! quantity {
@@ -130,7 +130,7 @@ macro_rules! quantity {
130130
/// ## Generic Parameters
131131
/// * `V`: Underlying storage type trait is implemented for.
132132
///
133-
/// [units]: http://jcgm.bipm.org/vim/en/1.13.html
133+
/// [units]: https://jcgm.bipm.org/vim/en/1.13.html
134134
/// [factor]: https://jcgm.bipm.org/vim/en/1.24.html
135135
pub trait Conversion<V>: Unit + $crate::Conversion<V, T = <V as $crate::Conversion<V>>::T>
136136
where

src/si/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
//! [International System of Units][si] (SI) and [International System of Quantities][isq] (ISQ)
22
//! implementations.
33
//!
4-
//! [si]: http://jcgm.bipm.org/vim/en/1.16.html
5-
//! [isq]: http://jcgm.bipm.org/vim/en/1.6.html
4+
//! [si]: https://jcgm.bipm.org/vim/en/1.16.html
5+
//! [isq]: https://jcgm.bipm.org/vim/en/1.6.html
66
77
#[macro_use]
88
mod prefix;
99

1010
system! {
11-
/// [International System of Quantities](http://jcgm.bipm.org/vim/en/1.6.html) (ISQ).
11+
/// [International System of Quantities](https://jcgm.bipm.org/vim/en/1.6.html) (ISQ).
1212
///
1313
/// ## Generic Parameters
1414
/// * `L`: Length dimension.
@@ -43,7 +43,7 @@ system! {
4343
luminous_intensity: candela, J;
4444
}
4545

46-
/// [International System of Units](http://jcgm.bipm.org/vim/en/1.16.html) (SI).
46+
/// [International System of Units](https://jcgm.bipm.org/vim/en/1.16.html) (SI).
4747
units: SI {
4848
acceleration::Acceleration,
4949
amount_of_substance::AmountOfSubstance,

src/si/prefix.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
/// generate the appropriate float type. Using explicit constants would require duplicate
66
/// definitions for `f32` and `f64` or casting from `f64` in `f32` contexts.
77
///
8-
/// [si]: http://jcgm.bipm.org/vim/en/1.16.html
9-
/// [mult]: http://jcgm.bipm.org/vim/en/1.17.html
10-
/// [submult]: http://jcgm.bipm.org/vim/en/1.18.html
8+
/// [si]: https://jcgm.bipm.org/vim/en/1.16.html
9+
/// [mult]: https://jcgm.bipm.org/vim/en/1.17.html
10+
/// [submult]: https://jcgm.bipm.org/vim/en/1.18.html
1111
/// [bimult]: https://www.iec.ch/si/binary.htm
1212
#[rustfmt::skip]
1313
#[macro_export]

src/si/thermodynamic_temperature.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
//! let result = tt + ti;
4343
//! ```
4444
//!
45-
//! [base]: http://jcgm.bipm.org/vim/en/1.4.html
46-
//! [isq]: http://jcgm.bipm.org/vim/en/1.6.html
45+
//! [base]: https://jcgm.bipm.org/vim/en/1.4.html
46+
//! [isq]: https://jcgm.bipm.org/vim/en/1.6.html
4747
4848
use crate::si::temperature_interval::TemperatureInterval;
4949

src/system.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/// Macro to implement a [system of quantities](http://jcgm.bipm.org/vim/en/1.3.html). `@...` match
1+
/// Macro to implement a [system of quantities](https://jcgm.bipm.org/vim/en/1.3.html). `@...` match
22
/// arms are considered private.
33
///
44
/// * `$quantities_attr`: System of quantities attributes. Generally used to set documentation
@@ -119,11 +119,11 @@ macro_rules! system {
119119
/// [base quantities][base] of a [system of quantities][quantities] as a product of powers
120120
/// of factors corresponding to the base quantities, omitting any numerical factor.
121121
///
122-
/// * <http://jcgm.bipm.org/vim/en/1.7.html>
122+
/// * <https://jcgm.bipm.org/vim/en/1.7.html>
123123
///
124-
/// [quantity]: http://jcgm.bipm.org/vim/en/1.1.html
125-
/// [base]: http://jcgm.bipm.org/vim/en/1.4.html
126-
/// [quantities]: http://jcgm.bipm.org/vim/en/1.3.html
124+
/// [quantity]: https://jcgm.bipm.org/vim/en/1.1.html
125+
/// [base]: https://jcgm.bipm.org/vim/en/1.4.html
126+
/// [quantities]: https://jcgm.bipm.org/vim/en/1.3.html
127127
pub trait Dimension:
128128
Send
129129
+ Sync
@@ -147,9 +147,9 @@ macro_rules! system {
147147
/// ## Generic Parameters
148148
/// * `V`: Underlying storage type trait is implemented for.
149149
///
150-
/// [units]: http://jcgm.bipm.org/vim/en/1.13.html
151-
/// [base]: http://jcgm.bipm.org/vim/en/1.10.html
152-
/// [quantities]: http://jcgm.bipm.org/vim/en/1.3.html
150+
/// [units]: https://jcgm.bipm.org/vim/en/1.13.html
151+
/// [base]: https://jcgm.bipm.org/vim/en/1.10.html
152+
/// [quantities]: https://jcgm.bipm.org/vim/en/1.3.html
153153
pub trait Units<V>:
154154
Send
155155
+ Sync
@@ -169,8 +169,8 @@ macro_rules! system {
169169
/// Trait to identify [measurement units][measurement] of individual
170170
/// [quantities][quantity].
171171
///
172-
/// [measurement]: http://jcgm.bipm.org/vim/en/1.9.html
173-
/// [quantity]: http://jcgm.bipm.org/vim/en/1.1.html
172+
/// [measurement]: https://jcgm.bipm.org/vim/en/1.9.html
173+
/// [quantity]: https://jcgm.bipm.org/vim/en/1.1.html
174174
pub trait Unit: Copy {
175175
/// Unit abbreviation.
176176
fn abbreviation() -> &'static str;
@@ -245,7 +245,7 @@ macro_rules! system {
245245
/// let v: Velocity = Length::new::<meter>(1.0) * Time::new::<second>(1.0);
246246
/// ```
247247
///
248-
/// * <http://jcgm.bipm.org/vim/en/1.1.html>
248+
/// * <https://jcgm.bipm.org/vim/en/1.1.html>
249249
///
250250
/// ## Generic Parameters
251251
/// * `D`: Quantity dimension. See [`Dimension`](./trait.Dimension.html).
@@ -275,8 +275,8 @@ macro_rules! system {
275275
/// Type alias for [dimension one][one] for which all the exponents of the factors
276276
/// corresponding to the [base quantities][base] are zero.
277277
///
278-
/// [one]: http://jcgm.bipm.org/vim/en/1.8.html
279-
/// [base]: http://jcgm.bipm.org/vim/en/1.4.html
278+
/// [one]: https://jcgm.bipm.org/vim/en/1.8.html
279+
/// [base]: https://jcgm.bipm.org/vim/en/1.4.html
280280
#[allow(dead_code)]
281281
pub type DimensionOne = DN<$crate::typenum::Z0>;
282282

@@ -1576,7 +1576,7 @@ macro_rules! system {
15761576
/// # }
15771577
/// ```
15781578
///
1579-
/// [units]: http://jcgm.bipm.org/vim/en/1.13.html
1579+
/// [units]: https://jcgm.bipm.org/vim/en/1.13.html
15801580
#[macro_export]
15811581
macro_rules! $quantities {
15821582
($path:path) => {

src/unit.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@
9696
/// # }
9797
/// ```
9898
///
99-
/// [si]: http://jcgm.bipm.org/vim/en/1.16.html
100-
/// [measurement]: http://jcgm.bipm.org/vim/en/1.9.html
99+
/// [si]: https://jcgm.bipm.org/vim/en/1.16.html
100+
/// [measurement]: https://jcgm.bipm.org/vim/en/1.9.html
101101
/// [pr]: https://github.com/iliekturtles/uom/pulls
102102
#[macro_export]
103103
macro_rules! unit {

uom-macros/CONTRIBUTING.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ additional terms or conditions.
1414
Licensed under either of
1515

1616
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
17-
<http://www.apache.org/licenses/LICENSE-2.0>)
18-
* MIT license ([LICENSE-MIT](LICENSE-MIT) or <http://opensource.org/licenses/MIT>)
17+
<https://www.apache.org/licenses/LICENSE-2.0>)
18+
* MIT license ([LICENSE-MIT](LICENSE-MIT) or <https://opensource.org/licenses/MIT>)
1919

2020
at your option.
2121

22-
[BIPM]: http://www.bipm.org/en/about-us/
23-
[brochure]: http://www.bipm.org/en/publications/si-brochure/
24-
[si]: http://jcgm.bipm.org/vim/en/1.16.html
22+
[BIPM]: https://www.bipm.org/en/about-us/
23+
[brochure]: https://www.bipm.org/en/publications/si-brochure/
24+
[si]: https://jcgm.bipm.org/vim/en/1.16.html
2525
[nist811]: https://www.nist.gov/pml/nist-guide-si-appendix-b9-factors-units-listed-kind-quantity-or-field-science

uom-macros/LICENSE-APACHE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Apache License
22
Version 2.0, January 2004
3-
http://www.apache.org/licenses/
3+
https://www.apache.org/licenses/
44

55
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
66

@@ -192,7 +192,7 @@
192192
you may not use this file except in compliance with the License.
193193
You may obtain a copy of the License at
194194

195-
http://www.apache.org/licenses/LICENSE-2.0
195+
https://www.apache.org/licenses/LICENSE-2.0
196196

197197
Unless required by applicable law or agreed to in writing, software
198198
distributed under the License is distributed on an "AS IS" BASIS,

uom-macros/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ additional terms or conditions.
2929
Licensed under either of
3030

3131
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
32-
<http://www.apache.org/licenses/LICENSE-2.0>)
33-
* MIT license ([LICENSE-MIT](LICENSE-MIT) or <http://opensource.org/licenses/MIT>)
32+
<https://www.apache.org/licenses/LICENSE-2.0>)
33+
* MIT license ([LICENSE-MIT](LICENSE-MIT) or <https://opensource.org/licenses/MIT>)
3434

3535
at your option.
3636

37-
[BIPM]: http://www.bipm.org/en/about-us/
38-
[brochure]: http://www.bipm.org/en/publications/si-brochure/
39-
[si]: http://jcgm.bipm.org/vim/en/1.16.html
37+
[BIPM]: https://www.bipm.org/en/about-us/
38+
[brochure]: https://www.bipm.org/en/publications/si-brochure/
39+
[si]: https://jcgm.bipm.org/vim/en/1.16.html
4040
[nist811]: https://www.nist.gov/pml/nist-guide-si-appendix-b9-factors-units-listed-kind-quantity-or-field-science
4141

0 commit comments

Comments
 (0)