summaryrefslogtreecommitdiff
path: root/src/bin/summain.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-11-28 14:30:48 +0200
committerLars Wirzenius <liw@liw.fi>2020-11-28 14:30:48 +0200
commit93a26490391605a2edeacec06f84b2463d31b0d6 (patch)
treecd41f167da2714acfe45d3314a6f65dc2004c56f /src/bin/summain.rs
parentf88bc8e727141cf90b5053d92cf3b3a84d88ae59 (diff)
downloadsummain-rs-93a26490391605a2edeacec06f84b2463d31b0d6.tar.gz
doc: add doc comments
Also, rename struct to ManifestEntry.
Diffstat (limited to 'src/bin/summain.rs')
-rw-r--r--src/bin/summain.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/summain.rs b/src/bin/summain.rs
index f25b857..056bc8b 100644
--- a/src/bin/summain.rs
+++ b/src/bin/summain.rs
@@ -2,7 +2,7 @@ use anyhow::Context;
use std::fs::symlink_metadata;
use std::path::{Path, PathBuf};
use structopt::StructOpt;
-use summain::Entry;
+use summain::ManifestEntry;
fn main() -> anyhow::Result<()> {
let mut opt = Opt::from_args();
@@ -21,7 +21,7 @@ struct Opt {
fn report(pathname: &Path) -> anyhow::Result<()> {
let m = symlink_metadata(pathname)?;
- let e = Entry::new(pathname, m);
+ let e = ManifestEntry::new(pathname, m);
println!("{}", serde_yaml::to_string(&e)?);
Ok(())
}