Skip to content

Commit 09a5684

Browse files
committed
Formatting.
Also removes the licence text from each page of rustdoc output - it was overly verbose.
1 parent e4ef7b2 commit 09a5684

File tree

5 files changed

+98
-86
lines changed

5 files changed

+98
-86
lines changed

src/block_dev.rs

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,21 @@
33
//! Block Device related types.
44
//!
55
//! Note that all types in this file *must* be `#[repr(C)]` and ABI stable.
6-
//!
7-
//! ## License
8-
//!
9-
//! > Copyright (C) The Neotron Developers, 2019-2022
10-
//! >
11-
//! > This program is free software: you can redistribute it and/or modify
12-
//! > it under the terms of the GNU General Public License as published by
13-
//! > the Free Software Foundation, either version 3 of the License, or
14-
//! > at your option) any later version.
15-
//! >
16-
//! > This program is distributed in the hope that it will be useful,
17-
//! > but WITHOUT ANY WARRANTY; without even the implied warranty of
18-
//! > MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19-
//! > GNU General Public License for more details.
20-
//! >
21-
//! > You should have received a copy of the GNU General Public License
22-
//! > along with this program. If not, see <https://www.gnu.org/licenses/>.
6+
7+
// Copyright (C) The Neotron Developers, 2019-2022
8+
//
9+
// This program is free software: you can redistribute it and/or modify
10+
// it under the terms of the GNU General Public License as published by
11+
// the Free Software Foundation, either version 3 of the License, or
12+
// at your option) any later version.
13+
//
14+
// This program is distributed in the hope that it will be useful,
15+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
// GNU General Public License for more details.
18+
//
19+
// You should have received a copy of the GNU General Public License
20+
// along with this program. If not, see <https://www.gnu.org/licenses/>.
2321

2422
// ============================================================================
2523
// Imports

src/hid.rs

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,21 @@
33
//! Human Interface Device (keyboard/mouse) related types.
44
//!
55
//! Note that all types in this file *must* be `#[repr(C)]` and ABI stable.
6-
//!
7-
//! ## License
8-
//!
9-
//! > Copyright (C) The Neotron Developers, 2019-2022
10-
//! >
11-
//! > This program is free software: you can redistribute it and/or modify
12-
//! > it under the terms of the GNU General Public License as published by
13-
//! > the Free Software Foundation, either version 3 of the License, or
14-
//! > at your option) any later version.
15-
//! >
16-
//! > This program is distributed in the hope that it will be useful,
17-
//! > but WITHOUT ANY WARRANTY; without even the implied warranty of
18-
//! > MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19-
//! > GNU General Public License for more details.
20-
//! >
21-
//! > You should have received a copy of the GNU General Public License
22-
//! > along with this program. If not, see <https://www.gnu.org/licenses/>.
6+
7+
// Copyright (C) The Neotron Developers, 2019-2022
8+
//
9+
// This program is free software: you can redistribute it and/or modify
10+
// it under the terms of the GNU General Public License as published by
11+
// the Free Software Foundation, either version 3 of the License, or
12+
// at your option) any later version.
13+
//
14+
// This program is distributed in the hope that it will be useful,
15+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
// GNU General Public License for more details.
18+
//
19+
// You should have received a copy of the GNU General Public License
20+
// along with this program. If not, see <https://www.gnu.org/licenses/>.
2321

2422
// ============================================================================
2523
// Imports

src/serial.rs

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,21 @@
33
//! Serial Port / UART related types.
44
//!
55
//! Note that all types in this file *must* be `#[repr(C)]` and ABI stable.
6-
//!
7-
//! ## License
8-
//!
9-
//! > Copyright (C) The Neotron Developers, 2019-2022
10-
//! >
11-
//! > This program is free software: you can redistribute it and/or modify
12-
//! > it under the terms of the GNU General Public License as published by
13-
//! > the Free Software Foundation, either version 3 of the License, or
14-
//! > at your option) any later version.
15-
//! >
16-
//! > This program is distributed in the hope that it will be useful,
17-
//! > but WITHOUT ANY WARRANTY; without even the implied warranty of
18-
//! > MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19-
//! > GNU General Public License for more details.
20-
//! >
21-
//! > You should have received a copy of the GNU General Public License
22-
//! > along with this program. If not, see <https://www.gnu.org/licenses/>.
6+
7+
// Copyright (C) The Neotron Developers, 2019-2022
8+
//
9+
// This program is free software: you can redistribute it and/or modify
10+
// it under the terms of the GNU General Public License as published by
11+
// the Free Software Foundation, either version 3 of the License, or
12+
// at your option) any later version.
13+
//
14+
// This program is distributed in the hope that it will be useful,
15+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
// GNU General Public License for more details.
18+
//
19+
// You should have received a copy of the GNU General Public License
20+
// along with this program. If not, see <https://www.gnu.org/licenses/>.
2321

2422
// ============================================================================
2523
// Imports

src/types.rs

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,21 @@
33
//! Contains types used in the Neotron API.
44
//!
55
//! Note that all types in this file *must* be `#[repr(C)]` and ABI stable.
6-
//!
7-
//! ## License
8-
//!
9-
//! > Copyright (C) The Neotron Developers, 2019-2022
10-
//! >
11-
//! > This program is free software: you can redistribute it and/or modify
12-
//! > it under the terms of the GNU General Public License as published by
13-
//! > the Free Software Foundation, either version 3 of the License, or
14-
//! > at your option) any later version.
15-
//! >
16-
//! > This program is distributed in the hope that it will be useful,
17-
//! > but WITHOUT ANY WARRANTY; without even the implied warranty of
18-
//! > MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19-
//! > GNU General Public License for more details.
20-
//! >
21-
//! > You should have received a copy of the GNU General Public License
22-
//! > along with this program. If not, see <https://www.gnu.org/licenses/>.
6+
7+
// Copyright (C) The Neotron Developers, 2019-2022
8+
//
9+
// This program is free software: you can redistribute it and/or modify
10+
// it under the terms of the GNU General Public License as published by
11+
// the Free Software Foundation, either version 3 of the License, or
12+
// at your option) any later version.
13+
//
14+
// This program is distributed in the hope that it will be useful,
15+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
// GNU General Public License for more details.
18+
//
19+
// You should have received a copy of the GNU General Public License
20+
// along with this program. If not, see <https://www.gnu.org/licenses/>.
2321

2422
// ============================================================================
2523
// Imports

src/version.rs

Lines changed: 38 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,37 @@
11
//! # Version
22
//!
33
//! Contains the version API.
4-
//!
5-
//! ## License
6-
//!
7-
//! > Copyright (C) The Neotron Developers, 2019-2022
8-
//! >
9-
//! > This program is free software: you can redistribute it and/or modify
10-
//! > it under the terms of the GNU General Public License as published by
11-
//! > the Free Software Foundation, either version 3 of the License, or
12-
//! > at your option) any later version.
13-
//! >
14-
//! > This program is distributed in the hope that it will be useful,
15-
//! > but WITHOUT ANY WARRANTY; without even the implied warranty of
16-
//! > MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17-
//! > GNU General Public License for more details.
18-
//! >
19-
//! > You should have received a copy of the GNU General Public License
20-
//! > along with this program. If not, see <https://www.gnu.org/licenses/>.
4+
5+
// Copyright (C) The Neotron Developers, 2019-2022
6+
//
7+
// This program is free software: you can redistribute it and/or modify
8+
// it under the terms of the GNU General Public License as published by
9+
// the Free Software Foundation, either version 3 of the License, or
10+
// at your option) any later version.
11+
//
12+
// This program is distributed in the hope that it will be useful,
13+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
// GNU General Public License for more details.
16+
//
17+
// You should have received a copy of the GNU General Public License
18+
// along with this program. If not, see <https://www.gnu.org/licenses/>.
19+
20+
// ============================================================================
21+
// Imports
22+
// ============================================================================
23+
24+
// None
25+
26+
// ============================================================================
27+
// Constants
28+
// ============================================================================
29+
30+
// None
31+
32+
// ============================================================================
33+
// Types
34+
// ============================================================================
2135

2236
/// Describes a semantic version.
2337
///
@@ -27,6 +41,10 @@
2741
#[derive(Copy, Clone, Debug)]
2842
pub struct Version(pub u32);
2943

44+
// ============================================================================
45+
// Impls
46+
// ============================================================================
47+
3048
impl Version {
3149
/// Create a new Version.
3250
pub const fn new(major: u8, minor: u8, patch: u8) -> Version {
@@ -49,4 +67,6 @@ impl Version {
4967
}
5068
}
5169

52-
// End of file
70+
// ============================================================================
71+
// End of File
72+
// ============================================================================

0 commit comments

Comments
 (0)