Skip to content

Commit

Permalink
removed unused variable
Browse files Browse the repository at this point in the history
Signed-off-by: Guillaume W. Bres <[email protected]>
  • Loading branch information
gwbres committed Mar 18, 2024
1 parent acddb91 commit 3b592dd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion rinex/src/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1610,7 +1610,7 @@ impl Header {
/*
* List of observables
*/
for (index, (constell, observables)) in obs.codes.iter().enumerate() {
for (constell, observables) in &obs.codes {
let mut descriptor = String::new();
descriptor.push_str(&format!("{:x}{:5}", constell, observables.len()));
for (i, observable) in observables.iter().enumerate() {
Expand Down
1 change: 0 additions & 1 deletion rinex/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ pub(crate) fn fmt_rinex(content: &str, marker: &str) -> String {
let start_off = i * 60;
let end_off = std::cmp::min(start_off + 60, content.len());
let chunk = &content[start_off..end_off];
let len = chunk.len();
string.push_str(&format!("{:<padding$}{}", chunk, marker, padding = 60));
if i < nb_lines - 1 {
string.push('\n');
Expand Down

0 comments on commit 3b592dd

Please sign in to comment.