Remove RefUdpateError
This error struct was not used.
//! removed.
use std::collections::HashMap;
-use std::{error, fmt};
/// A map that will keep track of the number of times an id has been added, and only remove the
/// id once the reference count is 0.
@@ -84,19 +83,6 @@ impl RefMap {
}
}
-#[derive(Debug)]
-pub struct RefUpdateError {
- pub id: String,
-}
-
-impl error::Error for RefUpdateError {}
-
-impl fmt::Display for RefUpdateError {
- fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
- write!(f, "Unable to update ref id for {}", self.id)
- }
-}
-
#[cfg(test)]
pub mod tests {
use super::*;
