~goorzhel/sota-slack-spotter

50994a6160ee2f950057077b10dd83eaeb4f1c85 — Antonio Gurgel a month ago 6b06bc4 main
Make imports consistent between sota/*.rs
1 files changed, 5 insertions(+), 6 deletions(-)

M src/sota/spot.rs
M src/sota/spot.rs => src/sota/spot.rs +5 -6
@@ 1,7 1,7 @@
//! Statements of activations in progress.

use std::{
    fmt::{Debug, Display},
    fmt::{Display, Error, Formatter},
    hash::{Hash, Hasher},
    time::Duration,
};


@@ 12,10 12,9 @@ use serde::{Deserialize, Serialize};
use serde_with::{serde_as, NoneAsEmptyString};
use time::{format_description::parse as parse_format, OffsetDateTime};

use crate::{
    callsign::Callsign,
    sota::{Mode, SOTAItem},
};
use crate::callsign::Callsign;

use super::{Mode, SOTAItem};

/// Fetch spots from SOTA API.
pub fn all_spots(hours: u8) -> Result<Vec<Spot>> {


@@ 68,7 67,7 @@ impl SOTAItem for Spot {
}

impl Display for Spot {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::result::Result<(), std::fmt::Error> {
    fn fmt(&self, f: &mut Formatter<'_>) -> std::result::Result<(), Error> {
        write!(
            f,
            "on {} MHz ({}) at {} by {}",