Browse Source

Remove trailing whitespace

Johannes Hofmann 8 years ago
parent
commit
7642ba58eb
2 changed files with 12 additions and 12 deletions
  1. 8
    8
      src/blob.rs
  2. 4
    4
      src/elements.rs

+ 8
- 8
src/blob.rs View File

43
 }
43
 }
44
 
44
 
45
 /// A blob.
45
 /// A blob.
46
-/// 
46
+///
47
 /// A PBF file consists of a sequence of blobs. This type supports decoding the content of a blob
47
 /// A PBF file consists of a sequence of blobs. This type supports decoding the content of a blob
48
 /// to different types of blocks that are usually more interesting to the user.
48
 /// to different types of blocks that are usually more interesting to the user.
49
 pub struct Blob {
49
 pub struct Blob {
109
 
109
 
110
 impl<R: Read> BlobReader<R> {
110
 impl<R: Read> BlobReader<R> {
111
     /// Creates a new `ElementReader`.
111
     /// Creates a new `ElementReader`.
112
-    /// 
112
+    ///
113
     /// # Example
113
     /// # Example
114
     /// ```
114
     /// ```
115
     /// use osmpbf::*;
115
     /// use osmpbf::*;
116
-    /// 
116
+    ///
117
     /// # fn foo() -> Result<()> {
117
     /// # fn foo() -> Result<()> {
118
     /// let f = std::fs::File::open("tests/test.osm.pbf")?;
118
     /// let f = std::fs::File::open("tests/test.osm.pbf")?;
119
     /// let buf_reader = std::io::BufReader::new(f);
119
     /// let buf_reader = std::io::BufReader::new(f);
120
-    /// 
120
+    ///
121
     /// let reader = ElementReader::new(buf_reader);
121
     /// let reader = ElementReader::new(buf_reader);
122
-    /// 
122
+    ///
123
     /// # Ok(())
123
     /// # Ok(())
124
     /// # }
124
     /// # }
125
     /// ```
125
     /// ```
133
 
133
 
134
 impl BlobReader<BufReader<File>> {
134
 impl BlobReader<BufReader<File>> {
135
     /// Tries to open the file at the given path and constructs a `BlobReader` from this.
135
     /// Tries to open the file at the given path and constructs a `BlobReader` from this.
136
-    /// 
136
+    ///
137
     /// # Errors
137
     /// # Errors
138
     /// Returns the same errors that `std::fs::File::open` returns.
138
     /// Returns the same errors that `std::fs::File::open` returns.
139
-    /// 
139
+    ///
140
     /// # Example
140
     /// # Example
141
     /// ```
141
     /// ```
142
     /// use osmpbf::*;
142
     /// use osmpbf::*;
143
-    /// 
143
+    ///
144
     /// # fn foo() -> Result<()> {
144
     /// # fn foo() -> Result<()> {
145
     /// let reader = BlobReader::from_path("tests/test.osm.pbf")?;
145
     /// let reader = BlobReader::from_path("tests/test.osm.pbf")?;
146
     /// # Ok(())
146
     /// # Ok(())

+ 4
- 4
src/elements.rs View File

57
 }
57
 }
58
 
58
 
59
 /// An OpenStreetMap way element (See [OSM wiki](http://wiki.openstreetmap.org/wiki/Way)).
59
 /// An OpenStreetMap way element (See [OSM wiki](http://wiki.openstreetmap.org/wiki/Way)).
60
-/// 
60
+///
61
 /// A way contains an ordered list of node references that can be accessed with the `refs` or the
61
 /// A way contains an ordered list of node references that can be accessed with the `refs` or the
62
 /// `refs_slice` method.
62
 /// `refs_slice` method.
63
 pub struct Way<'a> {
63
 pub struct Way<'a> {
108
 }
108
 }
109
 
109
 
110
 /// An OpenStreetMap relation element (See [OSM wiki](http://wiki.openstreetmap.org/wiki/Relation)).
110
 /// An OpenStreetMap relation element (See [OSM wiki](http://wiki.openstreetmap.org/wiki/Relation)).
111
-/// 
111
+///
112
 /// A relation contains an ordered list of members that can be of any element type.
112
 /// A relation contains an ordered list of members that can be of any element type.
113
 pub struct Relation<'a> {
113
 pub struct Relation<'a> {
114
     block: &'a PrimitiveBlock,
114
     block: &'a PrimitiveBlock,
149
 }
149
 }
150
 
150
 
151
 /// An iterator over the references of a way.
151
 /// An iterator over the references of a way.
152
-/// 
152
+///
153
 /// Each reference corresponds to a node id.
153
 /// Each reference corresponds to a node id.
154
 pub struct WayRefIter<'a> {
154
 pub struct WayRefIter<'a> {
155
     deltas: std::slice::Iter<'a, i64>,
155
     deltas: std::slice::Iter<'a, i64>,
195
 
195
 
196
 //TODO encapsulate member_id based on member_type (NodeId, WayId, RelationId)
196
 //TODO encapsulate member_id based on member_type (NodeId, WayId, RelationId)
197
 /// A member of a relation.
197
 /// A member of a relation.
198
-/// 
198
+///
199
 /// Each member has a member type and a member id that references an element of that type.
199
 /// Each member has a member type and a member id that references an element of that type.
200
 pub struct RelMember<'a> {
200
 pub struct RelMember<'a> {
201
     block: &'a PrimitiveBlock,
201
     block: &'a PrimitiveBlock,