Skip to content

Commit bb58dcd

Browse files
committed
rm unused DecodeFilenameError
1 parent 6390ca7 commit bb58dcd

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/apath.rs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Conserve backup system.
2-
// Copyright 2015, 2016, 2017, 2018, 2019, 2020, 2022 Martin Pool.
2+
// Copyright 2015-2025 Martin Pool.
33

44
// This program is free software; you can redistribute it and/or modify
55
// it under the terms of the GNU General Public License as published by
@@ -19,7 +19,6 @@
1919
//! Apaths in memory are simply strings.
2020
2121
use std::cmp::{Ordering, PartialEq};
22-
use std::ffi::OsStr;
2322
use std::fmt;
2423
use std::fmt::{Display, Formatter};
2524
use std::ops::Deref;
@@ -111,17 +110,6 @@ impl FromStr for Apath {
111110
}
112111
}
113112

114-
#[derive(Debug)]
115-
pub struct DecodeFilenameError<'name> {
116-
name: &'name OsStr,
117-
}
118-
119-
impl fmt::Display for DecodeFilenameError<'_> {
120-
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
121-
write!(f, "Couldn't decode filename {:?}", self.name)
122-
}
123-
}
124-
125113
#[derive(Debug)]
126114
pub struct ApathParseError {}
127115

0 commit comments

Comments
 (0)