Skip to content

Commit 6a0717e

Browse files
committed
Add blanks for readability
1 parent 59129ca commit 6a0717e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

functional/generics-type-classes.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,26 +123,32 @@ mod bootp {
123123
mod proto_trait {
124124
use std::path::{Path, PathBuf};
125125
use super::{bootp, nfs};
126+
126127
pub(crate) trait ProtoKind {
127128
type AuthInfo;
128129
fn auth_info(&self) -> Self::AuthInfo;
129130
}
131+
130132
pub struct Nfs {
131133
auth: nfs::AuthInfo,
132134
mount_point: PathBuf,
133135
}
136+
134137
impl Nfs {
135138
pub(crate) fn mount_point(&self) -> &Path {
136139
&self.mount_point
137140
}
138141
}
142+
139143
impl ProtoKind for Nfs {
140144
type AuthInfo = nfs::AuthInfo;
141145
fn auth_info(&self) -> Self::AuthInfo {
142146
self.auth.clone()
143147
}
144148
}
149+
145150
pub struct Bootp(); // no additional metadata
151+
146152
impl ProtoKind for Bootp {
147153
type AuthInfo = bootp::AuthInfo;
148154
fn auth_info(&self) -> Self::AuthInfo {

0 commit comments

Comments
 (0)