diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-03-27 10:58:54 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-03-27 10:58:54 +0200 |
commit | 5b09f60a408b743e78640d850854901a3565274c (patch) | |
tree | ad512a4a2e51b99b7c3eb8cfa621e4096df06a7d /src/generation.rs | |
parent | 2d7dd4be132fa90965017ae46a16009cd67cdf8c (diff) | |
download | obnam2-5b09f60a408b743e78640d850854901a3565274c.tar.gz |
refactor: avoid confusing function name from_str
Diffstat (limited to 'src/generation.rs')
-rw-r--r-- | src/generation.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/generation.rs b/src/generation.rs index 240f46a..174247a 100644 --- a/src/generation.rs +++ b/src/generation.rs @@ -162,7 +162,7 @@ pub struct BackedUpFile { impl BackedUpFile { pub fn new(fileno: FileId, entry: FilesystemEntry, reason: &str) -> Self { - let reason = Reason::from_str(reason); + let reason = Reason::from(reason); Self { fileno, entry, |